summaryrefslogtreecommitdiff
path: root/libc/misc/internals
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-03 06:59:24 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-03 06:59:24 +0000
commitc2bcc11c00d0ed71b0a1249804d373c19d60e1ae (patch)
treebcb197da273db805df0426cb0e0c6cac4be54b59 /libc/misc/internals
parent0e09af6c8e563c0ed8513f631e0bb5caafdb3a85 (diff)
tweak what is likely() in the argv[0] parsing
Diffstat (limited to 'libc/misc/internals')
-rw-r--r--libc/misc/internals/__uClibc_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index 6aa3fb386..424d066bb 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -261,10 +261,10 @@ __uClibc_main(int (*main)(int, char **, char **), int argc,
#endif
#ifdef __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__
- if (argv && argv[0]) {
+ if (likely(argv && argv[0])) {
__progname_full = *argv;
__progname = __strrchr(*argv, '/');
- if (likely(__progname != NULL))
+ if (__progname != NULL)
++__progname;
else
__progname = __progname_full;