From: Denys Vlasenko Date: Sat, 27 Mar 2010 04:02:00 +0000 (+0100) Subject: sysctl: tiny code shrink X-Git-Tag: 1_17_0~354 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2fdd41f5f97349f23b2a66592b9b29834faabaf;p=oweals%2Fbusybox.git sysctl: tiny code shrink Signed-off-by: Denys Vlasenko --- diff --git a/procps/sysctl.c b/procps/sysctl.c index c9063bf07..7a5bf1435 100644 --- a/procps/sysctl.c +++ b/procps/sysctl.c @@ -56,8 +56,7 @@ static void sysctl_dots_to_slashes(char *name) *cptr = '\0'; //bb_error_msg("trying:'%s'", name); if (access(name, F_OK) == 0) { - if (cptr != end) /* prevent trailing '/' */ - *cptr = '/'; + *cptr = '/'; //bb_error_msg("replaced:'%s'", name); last_good = cptr; goto again;