Expand the ?: construct into an if/else.

Submitted by:	nectar
This commit is contained in:
Dima Dorfman 2001-08-21 19:27:07 +00:00
parent 666fb6724a
commit ccbe835258
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82089

View File

@ -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;
}