mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
player: check for null in resume config search
Signed-off-by: wm4 <wm4@nowhere> CC: @mpv-player/stable
This commit is contained in:
parent
5c3f3fd3da
commit
eba8eeda78
@ -200,7 +200,8 @@ static char *mp_get_playback_resume_config_filename(struct mpv_global *global,
|
|||||||
|
|
||||||
if (!res) {
|
if (!res) {
|
||||||
res = mp_find_config_file(tmp, global, MP_WATCH_LATER_CONF);
|
res = mp_find_config_file(tmp, global, MP_WATCH_LATER_CONF);
|
||||||
res = talloc_asprintf(NULL, "%s/%s", res, conf);
|
if (res)
|
||||||
|
res = talloc_asprintf(NULL, "%s/%s", res, conf);
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
Loading…
Reference in New Issue
Block a user