diff options
author | 2004-01-10 11:23:42 +0000 | |
---|---|---|
committer | 2004-01-10 11:23:42 +0000 | |
commit | 1a79e7878c907754fd4ca1214a6806f97c413aa2 (patch) | |
tree | 83e9e753b7b9c71d2630058efa4f904e6207e18d | |
parent | 6d5fee309b4ee6711ab8f416626c2b5625c9d3fe (diff) |
prevent sig11 when $HOME is not set
patch by From: Martin Oberzalek <kingleo@gmx.at>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11768 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1632,7 +1632,8 @@ if(sh_video) { add_subtitles (sub_name[i], sh_video->fps, 0); } if(sub_auto) { // auto load sub file ... - char **tmp = sub_filenames(get_path("sub/"), filename); + char *psub = get_path( "sub/" ); + char **tmp = sub_filenames((psub ? psub : ""), filename); char **tmp2 = tmp; while (*tmp2) add_subtitles (*tmp2++, sh_video->fps, 0); |