Skip to content

Commit 22b01bc

Browse files
committed
Remove unnecessary memset
1 parent b306e88 commit 22b01bc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/internal.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12958,9 +12958,6 @@ static int MatchIPv6(const char* pattern, int patternLen,
1295812958
if ((word32)patternLen >= sizeof(patBuf) || strLen >= sizeof(strBuf))
1295912959
return 0;
1296012960

12961-
XMEMSET(patBuf, 0, WOLFSSL_MAX_IPSTR);
12962-
XMEMSET(strBuf, 0, WOLFSSL_MAX_IPSTR);
12963-
1296412961
/* Make sure strings are null-terminated and safely copied */
1296512962
XMEMCPY(patBuf, pattern, patternLen);
1296612963
patBuf[patternLen] = '\0';

0 commit comments

Comments
 (0)