projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbedacf
)
sysctl: tiny code shrink
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 27 Mar 2010 04:02:00 +0000
(
05:02
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 27 Mar 2010 04:02:00 +0000
(
05:02
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/sysctl.c
patch
|
blob
|
history
diff --git
a/procps/sysctl.c
b/procps/sysctl.c
index c9063bf07310041fe42039835023e62336778a10..7a5bf14358b160c9042c7799739786aadcceef51 100644
(file)
--- 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;