diff options
-rw-r--r-- | FICS/utils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index 5f53477..f335ab5 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -790,14 +790,14 @@ PUBLIC char *file_wplayer(char *fname) return tmp; } -PUBLIC char *file_bplayer(char *fname) +PUBLIC char * +file_bplayer(char *fname) { - char *ptr; + char *ptr; - ptr = rindex(fname, '-'); - if (!ptr) - return ""; - return ptr + 1; + if ((ptr = rindex(fname, '-')) == NULL) + return ""; + return ptr + 1; } /* |