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
1 changed files with 2 additions and 1 deletions

View File

@ -200,7 +200,8 @@ static char *mp_get_playback_resume_config_filename(struct mpv_global *global,
if (!res) {
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: