summaryrefslogtreecommitdiffstats
path: root/gobject
diff options
context:
space:
mode:
authorJohan Dahlin <zilch@src.gnome.org>2003-06-06 03:25:47 +0000
committerJohan Dahlin <zilch@src.gnome.org>2003-06-06 03:25:47 +0000
commitc3be19868075d0a7ff4e961461d7e8982be3fad3 (patch)
tree26a6bec9186c96d15e0c6e20f0f1963f94feb247 /gobject
parent62a61be87571eb32a31e4aeebfd2ca1a5f503ed2 (diff)
downloadpygobject-c3be19868075d0a7ff4e961461d7e8982be3fad3.tar.gz
pygobject-c3be19868075d0a7ff4e961461d7e8982be3fad3.tar.xz
pygobject-c3be19868075d0a7ff4e961461d7e8982be3fad3.zip
Fix bogus strcmp. Thanks to John Ehresman for spotting this. Fixes #110489
* gobjectmodule.c (get_handler_priority): Fix bogus strcmp. Thanks to John Ehresman for spotting this. Fixes #110489
Diffstat (limited to 'gobject')
-rw-r--r--gobject/gobjectmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c
index 41fd1b9..8b68e12 100644
--- a/gobject/gobjectmodule.c
+++ b/gobject/gobjectmodule.c
@@ -1484,7 +1484,8 @@ get_handler_priority(gint *priority, PyObject *kwargs)
"keyword argument name is not a string");
return -1;
}
- if (!strcmp(PyString_AsString(key), "priority")) {
+
+ if (strcmp(PyString_AsString(key), "priority") != 0) {
PyErr_SetString(PyExc_TypeError,
"only 'priority' keyword argument accepted");
return -1;