diff options
Diffstat (limited to 'procps/sysctl.c')
-rw-r--r-- | procps/sysctl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/procps/sysctl.c b/procps/sysctl.c index c9063bf..7a5bf14 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; |