]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Fix: Dereference of null pointer
authorJaroslav Rohel <jrohel@redhat.com>
Fri, 7 Dec 2018 06:05:10 +0000 (07:05 +0100)
committerJaroslav Rohel <jrohel@redhat.com>
Tue, 11 Dec 2018 12:25:29 +0000 (13:25 +0100)
ext/repo_repomdxml.c

index fd46272b1f5dc23833b465bdc233894aa6d93664..46d83615b64023fd29e47eb630cea677dca3f7a2 100644 (file)
@@ -181,7 +181,7 @@ startElement(struct solv_xmlparser *xmlp, int state, const char *name, const cha
             while (value)
              {
                char *p = strchr(value, ',');
-               if (*p)
+               if (p)
                  *p++ = 0;
                if (*value)
                  repodata_add_poolstr_array(pd->data, SOLVID_META, REPOSITORY_UPDATES, value);