diff options
Diffstat (limited to 'procps')
-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 c9063bf07..7a5bf1435 100644 --- a/procps/sysctl.c +++ b/procps/sysctl.c | |||
@@ -56,8 +56,7 @@ static void sysctl_dots_to_slashes(char *name) | |||
56 | *cptr = '\0'; | 56 | *cptr = '\0'; |
57 | //bb_error_msg("trying:'%s'", name); | 57 | //bb_error_msg("trying:'%s'", name); |
58 | if (access(name, F_OK) == 0) { | 58 | if (access(name, F_OK) == 0) { |
59 | if (cptr != end) /* prevent trailing '/' */ | 59 | *cptr = '/'; |
60 | *cptr = '/'; | ||
61 | //bb_error_msg("replaced:'%s'", name); | 60 | //bb_error_msg("replaced:'%s'", name); |
62 | last_good = cptr; | 61 | last_good = cptr; |
63 | goto again; | 62 | goto again; |