comparison stream/stream_cue.c @ 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 18eebabbc172
comparison
equal deleted inserted replaced
33432:4ecf8f0b024c 33433:a010c375947c
208 } 208 }
209 bin_filename[i] = '\0'; 209 bin_filename[i] = '\0';
210 210
211 fd_bin = -1; 211 fd_bin = -1;
212 for (i = 0; fd_bin == -1 && i < 6; i++) { 212 for (i = 0; fd_bin == -1 && i < 6; i++) {
213 if (i <=1 && bin_filename[0] == '\0')
214 continue;
213 if (i > 1 && strlen(cue_filename) < 3) 215 if (i > 1 && strlen(cue_filename) < 3)
214 break; 216 break;
217
215 switch (i) { 218 switch (i) {
216 case 0: 219 case 0:
217 /* now try to open that file, without path */ 220 /* now try to open that file, without path */
218 cur_name = bin_filename; 221 cur_name = bin_filename;
219 break; 222 break;