Expand the ?: construct into an if/else.
Submitted by: nectar
This commit is contained in:
parent
bcf70c152e
commit
bed180befd
@ -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