summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/header-py.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/header-py.c b/python/header-py.c
index 24c485b91..67d34ebeb 100644
--- a/python/header-py.c
+++ b/python/header-py.c
@@ -1065,6 +1065,9 @@ PyObject * labelCompare (PyObject * self, PyObject * args)
&e1, &v1, &r1, &e2, &v2, &r2))
return NULL;
+ if (e1 == NULL) e1 = "0";
+ if (e2 == NULL) e2 = "0";
+
rc = compare_values(e1, e2);
if (!rc) {
rc = compare_values(v1, v2);