Mercurial > audlegacy
changeset 3110:35e560fa183f
Added a fd NULL check to avoid probing on none-existing fds
author | Christian Birchinger <joker@netswarm.net> |
---|---|
date | Fri, 20 Jul 2007 02:35:34 +0200 |
parents | 710b3aca4d64 |
children | 3bc429ee6d06 |
files | src/audacious/input.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/input.c Thu Jul 19 21:32:57 2007 +0200 +++ b/src/audacious/input.c Fri Jul 20 02:35:34 2007 +0200 @@ -348,6 +348,12 @@ fd = vfs_buffered_file_new_from_uri(tmp_uri); g_free(tmp_uri); + if (!fd) { + printf("Unreadable to read from %s, giving up.\n", filename_proxy); + g_free(filename_proxy); + return NULL; + } + ext = strrchr(filename_proxy, '.') + 1; use_ext_filter =