summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-19 17:58:37 +0100
committerwm4 <wm4@nowhere>2015-01-19 17:58:37 +0100
commit616cfb90c14881f9a315c1188a40724097c1f748 (patch)
treef537c2d89171c675089a6eba70412e014cbd4a06
parent46a3974200574f3f17824d27ccd970158c361f6c (diff)
downloadmpv-616cfb90c14881f9a315c1188a40724097c1f748.tar.bz2
mpv-616cfb90c14881f9a315c1188a40724097c1f748.tar.xz
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.
-rw-r--r--stream/stream_dvb.c2
1 files changed, 1 insertions, 1 deletions
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) {