From 218b3ccd256eeaedbbc97dbe5704875069e05810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 2 May 2012 11:42:52 +0200 Subject: [PATCH] Remove unnecessary buffer zeroing. We always replace that current pos with a null terminator, so it doesn't matter what follows it. --- pkg.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg.c b/pkg.c index cdba222..6360d1c 100644 --- a/pkg.c +++ b/pkg.c @@ -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; }