Skip to content

Commit

Permalink
Initialize strtokCtx to NULL for first call to strtok_r()
Browse files Browse the repository at this point in the history
Apparently some strtok_r() implementations require this.
  • Loading branch information
cgutman committed Sep 27, 2023
1 parent 1be5626 commit 162c581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RtspConnection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 162c581

Please sign in to comment.