commit | 7d39daec035c27235995568e83dfd5264778a596 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Mon Oct 03 17:33:01 2016 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Mon Oct 03 17:33:01 2016 +0200 |
tree | e47749d898ce479c19ac7cc25b61fc29cf085d1d | |
parent | 9bed6618d1b91bba5383eaa67f0e89a20c726df6 [diff] [blame] |
xml parser BUGFIX dereferencing NULL pointer
diff --git a/src/xml.c b/src/xml.c index cf2fb40..f019ded 100644 --- a/src/xml.c +++ b/src/xml.c
@@ -62,7 +62,7 @@ } return (struct lyxml_ns *)attr; } - } else if (!strcmp(attr->name, prefix)) { + } else if (prefix && !strcmp(attr->name, prefix)) { /* prefix found */ return (struct lyxml_ns *)attr; }