summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorThomas Hisch <t.hisch@gmail.com>2007-02-09 19:24:47 +0100
committerStephen Hemminger <shemminger@linux-foundation.org>2007-03-05 17:35:06 -0800
commit892db6942ae0f5f7295b54be8d924020e99a51fc (patch)
tree5c79c30c85c6326b68b90b578d3cf9694275c142 /misc
parent09614f3025298748765a927f003ef6b20754e804 (diff)
Fixes use of uninitialized string
store can be used uninitialized in generic_proc_open if getenv(env) != NULL Signed-off-by: Thomas Hisch <t.hisch@gmail.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/ss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ss.c b/misc/ss.c
index ec272f44..156f672e 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -121,7 +121,7 @@ int generic_proc_open(char *env, char *name)
snprintf(store, sizeof(store)-1, "%s/%s", p, name);
p = store;
}
- return open(store, O_RDONLY);
+ return open(p, O_RDONLY);
}
int net_tcp_open(void)