Skip to content

Commit f9afdfd

Browse files
committed
Don't need to initialize with {0}
1 parent 90bd374 commit f9afdfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12952,8 +12952,8 @@ static int MatchIPv6(const char* pattern, int patternLen,
1295212952
const char* str, word32 strLen)
1295312953
{
1295412954
WOLFSSL_SOCKADDR_IN6 addr1, addr2;
12955-
char patBuf[WOLFSSL_MAX_IPSTR] = {0};
12956-
char strBuf[WOLFSSL_MAX_IPSTR] = {0};
12955+
char patBuf[WOLFSSL_MAX_IPSTR];
12956+
char strBuf[WOLFSSL_MAX_IPSTR];
1295712957

1295812958
if ((word32)patternLen >= sizeof(patBuf) || strLen >= sizeof(strBuf))
1295912959
return 0;

0 commit comments

Comments
 (0)