Skip to content

Commit

Permalink
Remove redundant memset
Browse files Browse the repository at this point in the history
Fixes #1087
  • Loading branch information
RainRat authored Nov 30, 2023
1 parent d649c15 commit dbc6ffe
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libclamav/libmspack.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ static struct mspack_file *mspack_fmap_open(struct mspack_system *self,
return NULL;
}
mspack_handle = malloc(sizeof(*mspack_handle));
memset(mspack_handle, 0, (sizeof(*mspack_handle)));
if (!mspack_handle) {
cli_dbgmsg("%s() failed at %d\n", __func__, __LINE__);
return NULL;
Expand Down

0 comments on commit dbc6ffe

Please sign in to comment.