mirror of https://github.com/mpv-player/mpv
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:
parent
46a3974200
commit
616cfb90c1
|
@ -172,7 +172,7 @@ static bool parse_pid_string(struct mp_log *log, char *pid_string,
|
||||||
*/
|
*/
|
||||||
const char *tokens = "+,;";
|
const char *tokens = "+,;";
|
||||||
char *pidPart;
|
char *pidPart;
|
||||||
char *savePtr;
|
char *savePtr = NULL;
|
||||||
pidPart = dvb_strtok_r(pid_string, tokens, &savePtr);
|
pidPart = dvb_strtok_r(pid_string, tokens, &savePtr);
|
||||||
while (pidPart != NULL) {
|
while (pidPart != NULL) {
|
||||||
if (ptr->pids_cnt >= DMX_FILTER_SIZE - 1) {
|
if (ptr->pids_cnt >= DMX_FILTER_SIZE - 1) {
|
||||||
|
|
Loading…
Reference in New Issue