libpkgconf: fragment parsing: do not pass NULL to pkgconf_fragment_add()

William Pitcock 2017-09-19 21:08:18 -05:00
parent 4fe96a8ccc
commit 6e21b142e3
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ pkgconf_fragment_parse(const pkgconf_client_t *client, pkgconf_list_t *list, pkg
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_argv_free(argv);