parent
218b3ccd25
commit
0e0bf1b0fb
5
pkg.c
5
pkg.c
|
@ -78,10 +78,13 @@ pkg_find(const char *name)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
path[pcount] = '\0';
|
path[pcount] = '\0';
|
||||||
|
if (path[0] != '\0')
|
||||||
|
{
|
||||||
snprintf(locbuf, sizeof locbuf, "%s/%s.pc", path, name);
|
snprintf(locbuf, sizeof locbuf, "%s/%s.pc", path, name);
|
||||||
if (f = fopen(locbuf, "r"))
|
if (f = fopen(locbuf, "r"))
|
||||||
return parse_file(locbuf, f);
|
return parse_file(locbuf, f);
|
||||||
else if (env_path[count] == '\0')
|
}
|
||||||
|
if (env_path[count] == '\0')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
pcount = 0;
|
pcount = 0;
|
||||||
|
|
Loading…
Reference in New Issue