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

feature/tap-sh
William Pitcock 2017-09-19 21:08:18 -05:00
parent e9fd43caa7
commit 56101390ac
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,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);