summaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
authorDenis Vlasenko2008-12-29 01:03:17 +0000
committerDenis Vlasenko2008-12-29 01:03:17 +0000
commitd6e8f9450cf055f0abfa424c5aa9e5a7c30d6593 (patch)
treeead38cb12979a2dd8e17be0ed840c4171e460784 /procps
parente40e76f3cd3702b1891231f585e5f38867a52b29 (diff)
downloadbusybox-d6e8f9450cf055f0abfa424c5aa9e5a7c30d6593.zip
busybox-d6e8f9450cf055f0abfa424c5aa9e5a7c30d6593.tar.gz
sysctl: fix gcc warning (false positive)
Diffstat (limited to 'procps')
-rw-r--r--procps/sysctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/procps/sysctl.c b/procps/sysctl.c
index 23fb16e..262574e 100644
--- 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 into trying full name too */
again:
cptr = end;