From 60fd253d795e312eae91c9ed32930e3304170176 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 7 Apr 2013 16:32:58 -0400 Subject: scannermodule: Fix a bad check Spotted by Coverity --- giscanner/giscannermodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c index 0ece7f7a..a5686ea3 100644 --- a/giscanner/giscannermodule.c +++ b/giscanner/giscannermodule.c @@ -695,7 +695,7 @@ pygi_collect_attributes (PyObject *self, goto out; } - if (!PyTuple_Size (tuple) == 2) + if (PyTuple_Size (tuple) != 2) { PyErr_SetString(PyExc_IndexError, "attribute item must be a tuple of length 2"); -- cgit v1.2.1