From 44ef839175876e137a5692f16202fd0e0cdcc7fa Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 6 May 2012 01:02:57 -0500 Subject: [PATCH] pkg: reset iter to 0 when checking system compiled-in paths --- pkg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg.c b/pkg.c index 22cbbf1..9abc728 100644 --- a/pkg.c +++ b/pkg.c @@ -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);