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>
This commit is contained in:
Thomas Hisch 2007-02-09 19:24:47 +01:00 committed by Stephen Hemminger
parent 09614f3025
commit 892db6942a
1 changed files with 1 additions and 1 deletions

View File

@ -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)