pkg: reset iter to 0 when checking system compiled-in paths

feature/tap-sh
William Pitcock 2012-05-06 01:02:57 -05:00
parent a078249a60
commit 44ef839175
1 changed files with 1 additions and 0 deletions

1
pkg.c
View File

@ -120,6 +120,7 @@ pkg_find(const char *name, unsigned int flags)
{
count = path_split(PKG_DEFAULT_PATH, &path);
iter = 0;
while (iter < count)
{
snprintf(locbuf, sizeof locbuf, "%s/%s" PKG_CONFIG_EXT, path[iter], name);