[gobject-introspection] scannermodule: Fix a bad check



commit 60fd253d795e312eae91c9ed32930e3304170176
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Apr 7 16:32:58 2013 -0400

    scannermodule: Fix a bad check
    
    Spotted by Coverity

 giscanner/giscannermodule.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/giscannermodule.c b/giscanner/giscannermodule.c
index 0ece7f7..a5686ea 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");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]