diff options
author | dd <dd@FreeBSD.org> | 2001-08-21 19:27:07 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-08-21 19:27:07 +0000 |
commit | bed180befd38e6150619c993078cf3de8bbd7810 (patch) | |
tree | 2b61e32e9df4a4a100e19851b6d824ad5c1b25ca /lib | |
parent | bcf70c152e95b7e08ef25757202ecfe272f0ce7d (diff) | |
download | FreeBSD-src-bed180befd38e6150619c993078cf3de8bbd7810.zip FreeBSD-src-bed180befd38e6150619c993078cf3de8bbd7810.tar.gz |
Expand the ?: construct into an if/else.
Submitted by: nectar
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/setprogname.c | 5 |
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; } |