xbps_pkgpattern_match: remove a wrong memset(3) call.
--HG-- branch : progress_callback
This commit is contained in:
@ -117,12 +117,10 @@ int
|
|||||||
xbps_pkgpattern_match(const char *instpkg, char *pattern)
|
xbps_pkgpattern_match(const char *instpkg, char *pattern)
|
||||||
{
|
{
|
||||||
const char *fname = instpkg;
|
const char *fname = instpkg;
|
||||||
char *basefname, condchar = '\0', *condition;
|
char *basefname = NULL, condchar = '\0', *condition;
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
int rv = 0;
|
int rv = 0;
|
||||||
|
|
||||||
memset(&basefname, 0, sizeof(basefname));
|
|
||||||
|
|
||||||
/* Check for a full match with strcmp, otherwise try csh_match() */
|
/* Check for a full match with strcmp, otherwise try csh_match() */
|
||||||
if (strcmp(instpkg, pattern) == 0)
|
if (strcmp(instpkg, pattern) == 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user