Skip to content

Commit 203f12d

Browse files
committed
add missing ptr
1 parent 1c9dfee commit 203f12d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/platform/platform_windows.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ error_t socketReceive(Socket *socket, void *data_in,
327327

328328
if ((flags & SOCKET_FLAG_BREAK_CHAR) && buff->buffer_used)
329329
{
330+
const char *ptr = NULL;
331+
330332
/* First, check for the null terminator (0x00) in the buffer */
331333
const char *null_pos = memchr(buff->buffer, 0x00, buff->buffer_used);
332334
if (null_pos)

0 commit comments

Comments
 (0)