File lookup: fix uninitialized 'iter'.

pull/4/head
Michał Górny 2012-05-03 09:22:08 +02:00
parent 290107de84
commit a4ceb68409
1 changed files with 1 additions and 1 deletions

2
pkg.c
View File

@ -63,7 +63,7 @@ pkg_find(const char *name, unsigned int flags)
{ {
char locbuf[PKG_CONFIG_PATH_SZ]; char locbuf[PKG_CONFIG_PATH_SZ];
char **path; char **path;
size_t count, iter; size_t count, iter = 0;
const char *env_path; const char *env_path;
FILE *f; FILE *f;