# HG changeset patch # User reimar # Date 1306669300 0 # Node ID 15659ae10207c3a295556951a632b7c8597e1893 # Parent 3b95353bb7f9c77cdca15e3afa293fcb156f8075 Simplify NULL check. diff -r 3b95353bb7f9 -r 15659ae10207 stream/stream_cue.c --- a/stream/stream_cue.c Sun May 29 11:39:25 2011 +0000 +++ b/stream/stream_cue.c Sun May 29 11:41:40 2011 +0000 @@ -320,7 +320,7 @@ /* split the filename into a path and filename part */ s = strdup(in_cue_filename); t = strrchr(s, '/'); - if (t == (char *)NULL) + if (!t) t = "."; else { *t = '\0';