From 136e9c7cc0df39e222fcde12259fa69b7f44f967 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 25 Dec 2023 17:11:33 +0100 Subject: Reformatted file_bplayer() --- FICS/utils.c | 12 ++++++------ 1 file 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; } /* -- cgit v1.2.3