From 616cfb90c14881f9a315c1188a40724097c1f748 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 19 Jan 2015 17:58:37 +0100 Subject: 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. --- stream/stream_dvb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index 419f371204..3144f95676 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -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) { -- cgit v1.2.3