From: sopwith Date: Fri, 20 Feb 2004 20:18:20 +0000 (+0000) Subject: another oops X-Git-Tag: tznext/4.11.0.1.tizen20130304~6587 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa18754507f0381b471041a0ed26133ddc79fae9;p=tools%2Flibrpm-tizen.git another oops CVS patchset: 7108 CVS date: 2004/02/20 20:18:20 --- diff --git a/python/header-py.c b/python/header-py.c index 41cc046..b2c8d18 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -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;