xbps_pkgpattern_match: remove a wrong memset(3) call.
--HG-- branch : progress_callback
This commit is contained in:
parent
ef25792f90
commit
27c2ca3732
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user