]> 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)
committerMichael Schroeder <mls@suse.de>
Thu, 27 Jun 2019 14:18:55 +0000 (16:18 +0200)
ext/repo_repomdxml.c

index 760d481f9fe08bb325483a2f51023007e97d42ac..b2a5b8dde7bf99193efb260ac4e9d346c36fc809 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);