another oops
authorsopwith <devnull@localhost>
Fri, 20 Feb 2004 20:18:20 +0000 (20:18 +0000)
committersopwith <devnull@localhost>
Fri, 20 Feb 2004 20:18:20 +0000 (20:18 +0000)
CVS patchset: 7108
CVS date: 2004/02/20 20:18:20

python/header-py.c

index 41cc046..b2c8d18 100644 (file)
@@ -991,7 +991,9 @@ PyObject * versionCompare (PyObject * self, PyObject * args)
  */
 static int label_compare_values(const char *str1, const char *str2)
 {
-    if (str1 && !str2)
+    if (!str1 && !str2)
+       return 0;
+    else if (str1 && !str2)
        return 1;
     else if (!str1 && str2)
        return -1;