summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-10-09 19:03:12 +0000
committerGeorg Brandl <georg@python.org>2006-10-09 19:03:12 +0000
commit7444eda3d6be42f8fbf7e07a7dce6c100d53aa5c (patch)
treefe5c60ab5d9a5cb2db627ac6845e94deb58d7ac4
parent0037300f153cb0a84238c5fbe2eafde3102001b6 (diff)
downloadcpython-git-7444eda3d6be42f8fbf7e07a7dce6c100d53aa5c.tar.gz
Patch #1572724: fix typo ('=' instead of '==') in _msi.c.
(backport from rev. 52251)
-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 485c5f029b..1159a6bf0d 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -49,6 +49,8 @@ Core and builtins
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 35f137a24a..f4af92af8a 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);