changeset 33433:a010c375947c

Avoid probing with empty filename in cue_find_bin().
author iive
date Sun, 29 May 2011 22:41:52 +0000
parents 4ecf8f0b024c
children 229982126641
files stream/stream_cue.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream_cue.c	Sun May 29 12:23:38 2011 +0000
+++ b/stream/stream_cue.c	Sun May 29 22:41:52 2011 +0000
@@ -210,8 +210,11 @@
 
   fd_bin = -1;
   for (i = 0; fd_bin == -1 && i < 6; i++) {
+    if (i <=1 && bin_filename[0] == '\0')
+      continue;
     if (i > 1 && strlen(cue_filename) < 3)
       break;
+
     switch (i) {
     case 0:
       /* now try to open that file, without path */