pkg: reset iter to 0 when checking system compiled-in paths
parent
a078249a60
commit
44ef839175
1
pkg.c
1
pkg.c
|
@ -120,6 +120,7 @@ pkg_find(const char *name, unsigned int flags)
|
||||||
{
|
{
|
||||||
count = path_split(PKG_DEFAULT_PATH, &path);
|
count = path_split(PKG_DEFAULT_PATH, &path);
|
||||||
|
|
||||||
|
iter = 0;
|
||||||
while (iter < count)
|
while (iter < count)
|
||||||
{
|
{
|
||||||
snprintf(locbuf, sizeof locbuf, "%s/%s" PKG_CONFIG_EXT, path[iter], name);
|
snprintf(locbuf, sizeof locbuf, "%s/%s" PKG_CONFIG_EXT, path[iter], name);
|
||||||
|
|
Loading…
Reference in New Issue