xbps_pkgpattern_match: remove a wrong memset(3) call.

--HG--
branch : progress_callback
This commit is contained in:
Juan RP 2011-01-22 17:25:37 +01:00
parent ef25792f90
commit 27c2ca3732

View File

@ -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;