From 203f12d3d357d16268b83c7bdedb332820b9e87a Mon Sep 17 00:00:00 2001 From: SciLor Date: Sat, 26 Oct 2024 18:14:34 +0000 Subject: [PATCH] add missing ptr --- src/platform/platform_windows.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/platform_windows.c b/src/platform/platform_windows.c index b218a3e0..a8ad0f81 100644 --- a/src/platform/platform_windows.c +++ b/src/platform/platform_windows.c @@ -327,6 +327,8 @@ error_t socketReceive(Socket *socket, void *data_in, if ((flags & SOCKET_FLAG_BREAK_CHAR) && buff->buffer_used) { + const char *ptr = NULL; + /* First, check for the null terminator (0x00) in the buffer */ const char *null_pos = memchr(buff->buffer, 0x00, buff->buffer_used); if (null_pos)