From: Jaroslav Rohel Date: Fri, 7 Dec 2018 06:05:10 +0000 (+0100) Subject: Fix: Dereference of null pointer X-Git-Tag: 0.7.3~16^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5883b20b7b021ee94111cb72777ab3ba3f50950;p=thirdparty%2Flibsolv.git Fix: Dereference of null pointer --- diff --git a/ext/repo_repomdxml.c b/ext/repo_repomdxml.c index fd46272b..46d83615 100644 --- a/ext/repo_repomdxml.c +++ b/ext/repo_repomdxml.c @@ -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);