stream_dvb: silence bogus compiler warning

This complains within dvb_strtok_r() that savePtr is uninitialized.
There doesn't seem to be any code path where this can happen though, so
it's probably a false positive. Silence it anyway.
This commit is contained in:
wm4 2015-01-19 17:58:37 +01:00
parent 46a3974200
commit 616cfb90c1
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ static bool parse_pid_string(struct mp_log *log, char *pid_string,
*/
const char *tokens = "+,;";
char *pidPart;
char *savePtr;
char *savePtr = NULL;
pidPart = dvb_strtok_r(pid_string, tokens, &savePtr);
while (pidPart != NULL) {
if (ptr->pids_cnt >= DMX_FILTER_SIZE - 1) {