Remove unnecessary buffer zeroing.
We always replace that current pos with a null terminator, so it doesn't matter what follows it.pull/1/head
parent
f26001c3f8
commit
218b3ccd25
3
pkg.c
3
pkg.c
|
@ -67,8 +67,6 @@ pkg_find(const char *name)
|
||||||
int count = 0, pcount = 0;
|
int count = 0, pcount = 0;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
bzero(path, BUFSIZ);
|
|
||||||
|
|
||||||
env_path = pkg_get_pkgconfig_path();
|
env_path = pkg_get_pkgconfig_path();
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
@ -86,7 +84,6 @@ pkg_find(const char *name)
|
||||||
else if (env_path[count] == '\0')
|
else if (env_path[count] == '\0')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
bzero(path, BUFSIZ);
|
|
||||||
pcount = 0;
|
pcount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue