Remove unnecessary buffer zeroing.

We always replace that current pos with a null terminator, so it doesn't
matter what follows it.
feature/tap-sh
Michał Górny 2012-05-02 11:42:52 +02:00
parent f26001c3f8
commit 218b3ccd25
1 changed files with 0 additions and 3 deletions

3
pkg.c
View File

@ -67,8 +67,6 @@ pkg_find(const char *name)
int count = 0, pcount = 0;
FILE *f;
bzero(path, BUFSIZ);
env_path = pkg_get_pkgconfig_path();
while (1)
{
@ -86,7 +84,6 @@ pkg_find(const char *name)
else if (env_path[count] == '\0')
break;
bzero(path, BUFSIZ);
pcount = 0;
}