diff --git a/libmpdemux/cue_read.c b/libmpdemux/cue_read.c index 553684e9ac..a2da833372 100644 --- a/libmpdemux/cue_read.c +++ b/libmpdemux/cue_read.c @@ -295,7 +295,7 @@ int cue_read_cue (char *in_cue_filename) else { *t = '\0'; t = s; - if (*t) + if (*t == '\0') strcpy(t, "/"); } printf ("dirname: %s\n", t);