From 27c2ca37321a2ebf74a8e2addc015ebb7e5dbd59 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 22 Jan 2011 17:25:37 +0100 Subject: [PATCH] xbps_pkgpattern_match: remove a wrong memset(3) call. --HG-- branch : progress_callback --- lib/pkgmatch.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/pkgmatch.c b/lib/pkgmatch.c index 62ea455a..c8aa9fde 100644 --- a/lib/pkgmatch.c +++ b/lib/pkgmatch.c @@ -117,12 +117,10 @@ int xbps_pkgpattern_match(const char *instpkg, char *pattern) { const char *fname = instpkg; - char *basefname, condchar = '\0', *condition; + char *basefname = NULL, condchar = '\0', *condition; size_t len = 0; int rv = 0; - memset(&basefname, 0, sizeof(basefname)); - /* Check for a full match with strcmp, otherwise try csh_match() */ if (strcmp(instpkg, pattern) == 0) return 1;