# HG changeset patch # User attila # Date 1073733822 0 # Node ID e6db1c939c258d1aa684ba012b7d40541660f181 # Parent a80ae8896d6a1ce01d1b16fbddeb068c287b113a prevent sig11 when $HOME is not set patch by From: Martin Oberzalek diff -r a80ae8896d6a -r e6db1c939c25 mplayer.c --- a/mplayer.c Sat Jan 10 10:00:18 2004 +0000 +++ b/mplayer.c Sat Jan 10 11:23:42 2004 +0000 @@ -1632,7 +1632,8 @@ 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);