# HG changeset patch # User Christian Birchinger # Date 1184891734 -7200 # Node ID 35e560fa183f03a687b720a6e9f96e509a27572e # Parent 710b3aca4d64cfc83b1d10bfed291bc578391e0f Added a fd NULL check to avoid probing on none-existing fds diff -r 710b3aca4d64 -r 35e560fa183f src/audacious/input.c --- 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 =