Commit 892db694 authored by Thomas Hisch's avatar Thomas Hisch Committed by Stephen Hemminger

Fixes use of uninitialized string

store can be used uninitialized in generic_proc_open
if getenv(env) != NULL
Signed-off-by: default avatarThomas Hisch <t.hisch@gmail.com>
parent 09614f30
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment