[Python-checkins] bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)

Steve Dower webhook-mailer at python.org
Thu Mar 7 13:20:35 EST 2019


https://github.com/python/cpython/commit/bf94cc7b496a379e1f604aa2e4080bb70ca4020e
commit: bf94cc7b496a379e1f604aa2e4080bb70ca4020e
branch: master
author: Zackery Spytz <zspytz at gmail.com>
committer: Steve Dower <steve.dower at microsoft.com>
date: 2019-03-07T10:20:13-08:00
summary:

bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)

files:
M PC/_msi.c

diff --git a/PC/_msi.c b/PC/_msi.c
index 99aef52e422b..ae30acbc9b48 100644
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -916,7 +916,7 @@ msidb_getsummaryinformation(msiobj *db, PyObject *args)
         return msierror(status);
 
     oresult = PyObject_NEW(struct msiobj, &summary_Type);
-    if (!result) {
+    if (!oresult) {
         MsiCloseHandle(result);
         return NULL;
     }



More information about the Python-checkins mailing list