summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-10-09 19:03:06 (GMT)
committerGeorg Brandl <georg@python.org>2006-10-09 19:03:06 (GMT)
commit412a9ea10e786f61b9d9f144b9296d30b5ad6bb9 (patch)
tree772cf4926b495bd55bb3f88cccf9418ff09be0fb
parentb3f37556bcb21997a16d117e36eec78474ee0e19 (diff)
downloadcpython-412a9ea10e786f61b9d9f144b9296d30b5ad6bb9.zip
cpython-412a9ea10e786f61b9d9f144b9296d30b5ad6bb9.tar.gz
cpython-412a9ea10e786f61b9d9f144b9296d30b5ad6bb9.tar.bz2
Patch #1572724: fix typo ('=' instead of '==') in _msi.c.
-rw-r--r--Misc/NEWS2
-rw-r--r--PC/_msi.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 9f7111f..0b9aade 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -126,6 +126,8 @@ Library
Extension Modules
-----------------
+- Patch #1572724: fix typo ('=' instead of '==') in _msi.c.
+
- Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault
when encoding non-BMP unicode characters.
diff --git a/PC/_msi.c b/PC/_msi.c
index 35f137a..f4af92a 100644
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -495,7 +495,7 @@ summary_getproperty(msiobj* si, PyObject *args)
status = MsiSummaryInfoGetProperty(si->h, field, &type, &ival,
&fval, sval, &ssize);
- if (status = ERROR_MORE_DATA) {
+ if (status == ERROR_MORE_DATA) {
sval = malloc(ssize);
status = MsiSummaryInfoGetProperty(si->h, field, &type, &ival,
&fval, sval, &ssize);