mirror of
https://github.com/pkgconf/pkgconf.git
synced 2026-01-27 01:44:34 +00:00
libpkgconf: dependency: skip parsing of empty strings
Closes: https://github.com/pkgconf/pkgconf/issues/413 Closes: https://github.com/pkgconf/pkgconf/issues/414 Co-authored-by: Jonas Kvinge <jonas@jkvinge.net>
This commit is contained in:
parent
c52f77854f
commit
46059c36d7
@ -316,6 +316,9 @@ pkgconf_dependency_parse_str(pkgconf_client_t *client, pkgconf_list_t *deplist_h
|
||||
char *cnameptr = cmpname;
|
||||
char *cnameend = cmpname + PKGCONF_ITEM_SIZE - 1;
|
||||
|
||||
if (!*depends)
|
||||
return;
|
||||
|
||||
memset(cmpname, '\0', sizeof cmpname);
|
||||
|
||||
buf_sz = strlen(depends) * 2;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user