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:
e40e76f
)
sysctl: fix gcc warning (false positive)
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 29 Dec 2008 01:03:17 +0000
(
01:03
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 29 Dec 2008 01:03:17 +0000
(
01:03
-0000)
procps/sysctl.c
patch
|
blob
|
history
diff --git
a/procps/sysctl.c
b/procps/sysctl.c
index 23fb16e9eaada9d396bd9f9eb0be719f4f4b80fc..262574e61e63723ee2775868371197fede43cb50 100644
(file)
--- a/
procps/sysctl.c
+++ b/
procps/sysctl.c
@@
-97,7
+97,8
@@
static int sysctl_handle_preload_file(const char *filename)
static int sysctl_act_on_setting(char *setting)
{
int fd, retval = EXIT_SUCCESS;
- char *cptr, *outname, *value;
+ char *cptr, *outname;
+ char *value = value; /* for compiler */
outname = xstrdup(setting);
@@
-235,7
+236,7
@@
static void sysctl_dots_to_slashes(char *name)
*/
end = name + strlen(name);
last_good = name - 1;
- *end = '.'; /* trick the loop in trying full name too */
+ *end = '.'; /* trick the loop in
to
trying full name too */
again:
cptr = end;