diff options
Diffstat (limited to 'lib/libc/gen/setprogname.c')
-rw-r--r-- | lib/libc/gen/setprogname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/setprogname.c b/lib/libc/gen/setprogname.c index 2ddceef..8a04211 100644 --- a/lib/libc/gen/setprogname.c +++ b/lib/libc/gen/setprogname.c @@ -14,5 +14,5 @@ setprogname(const char *progname) const char *p; p = strrchr(progname, '/'); - __progname = p ? p + 1 : progname; + __progname = p != NULL ? p + 1 : progname; } |