forked from ariadne/pkgconf
libpkgconf: fragment parsing: do not pass NULL to pkgconf_fragment_add()
parent
e9fd43caa7
commit
56101390ac
|
@ -619,7 +619,7 @@ pkgconf_fragment_parse(const pkgconf_client_t *client, pkgconf_list_t *list, pkg
|
||||||
|
|
||||||
pkgconf_argv_split(repstr, &argc, &argv);
|
pkgconf_argv_split(repstr, &argc, &argv);
|
||||||
|
|
||||||
for (i = 0; i < argc; i++)
|
for (i = 0; i < argc && argv[i] != NULL; i++)
|
||||||
pkgconf_fragment_add(client, list, argv[i]);
|
pkgconf_fragment_add(client, list, argv[i]);
|
||||||
|
|
||||||
pkgconf_argv_free(argv);
|
pkgconf_argv_free(argv);
|
||||||
|
|
Loading…
Reference in New Issue