Skip to content

Commit

Permalink
add missing ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Oct 26, 2024
1 parent 1c9dfee commit 203f12d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform/platform_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 203f12d

Please sign in to comment.