summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-08-21 19:27:07 +0000
committerdd <dd@FreeBSD.org>2001-08-21 19:27:07 +0000
commitbed180befd38e6150619c993078cf3de8bbd7810 (patch)
tree2b61e32e9df4a4a100e19851b6d824ad5c1b25ca /lib/libc/gen
parentbcf70c152e95b7e08ef25757202ecfe272f0ce7d (diff)
downloadFreeBSD-src-bed180befd38e6150619c993078cf3de8bbd7810.zip
FreeBSD-src-bed180befd38e6150619c993078cf3de8bbd7810.tar.gz
Expand the ?: construct into an if/else.
Submitted by: nectar
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/setprogname.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/gen/setprogname.c b/lib/libc/gen/setprogname.c
index 8a04211..8de79a3 100644
--- a/lib/libc/gen/setprogname.c
+++ b/lib/libc/gen/setprogname.c
@@ -14,5 +14,8 @@ setprogname(const char *progname)
const char *p;
p = strrchr(progname, '/');
- __progname = p != NULL ? p + 1 : progname;
+ if (p != NULL)
+ __progname = p + 1;
+ else
+ __progname = progname;
}
OpenPOWER on IntegriCloud