mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-27 14:29:58 +00:00
Initialize strtokCtx to NULL for first call to strtok_r()
Apparently some strtok_r() implementations require this.
This commit is contained in:
1 parent
1be56269a3
commit
162c581754
1 file changed
+1
-1
@@ -972,7 +972,7 @@ int performRtspHandshake(PSERVER_INFORMATION serverInfo) {
|
|||||||
char* sessionId;
|
char* sessionId;
|
||||||
char* pingPayload;
|
char* pingPayload;
|
||||||
int error = -1;
|
int error = -1;
|
||||||
char* strtokCtx;
|
char* strtokCtx = NULL;
|
||||||
|
|
||||||
if (!setupStream(&response,
|
if (!setupStream(&response,
|
||||||
AppVersionQuad[0] >= 5 ? "streamid=audio/0/0" : "streamid=audio",
|
AppVersionQuad[0] >= 5 ? "streamid=audio/0/0" : "streamid=audio",
|
||||||
|
|||||||
Reference in new issue
Block a user