From 162c581754400ec1fcb428c5be635882129d595c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 27 Sep 2023 01:27:12 -0500 Subject: [PATCH] Initialize strtokCtx to NULL for first call to strtok_r() Apparently some strtok_r() implementations require this. --- src/RtspConnection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RtspConnection.c b/src/RtspConnection.c index 2ac88803..eca02780 100644 --- a/src/RtspConnection.c +++ b/src/RtspConnection.c @@ -972,7 +972,7 @@ int performRtspHandshake(PSERVER_INFORMATION serverInfo) { char* sessionId; char* pingPayload; int error = -1; - char* strtokCtx; + char* strtokCtx = NULL; if (!setupStream(&response, AppVersionQuad[0] >= 5 ? "streamid=audio/0/0" : "streamid=audio",