1
0
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:
James Ross-Gowan 2014-09-05 23:09:12 +10:00 committed by wm4
parent 5c3f3fd3da
commit eba8eeda78

View File

@ -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: