Expand the ?: construct into an if/else.
Submitted by: nectar
This commit is contained in:
parent
666fb6724a
commit
ccbe835258
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82089
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user