diff options
author | Thomas Hisch <t.hisch@gmail.com> | 2007-02-09 19:24:47 +0100 |
---|---|---|
committer | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-03-05 17:35:06 -0800 |
commit | 892db6942ae0f5f7295b54be8d924020e99a51fc (patch) | |
tree | 5c79c30c85c6326b68b90b578d3cf9694275c142 /misc | |
parent | 09614f3025298748765a927f003ef6b20754e804 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |