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:
parent
09614f3025
commit
892db6942a
|
|
@ -121,7 +121,7 @@ int generic_proc_open(char *env, char *name)
|
||||||
snprintf(store, sizeof(store)-1, "%s/%s", p, name);
|
snprintf(store, sizeof(store)-1, "%s/%s", p, name);
|
||||||
p = store;
|
p = store;
|
||||||
}
|
}
|
||||||
return open(store, O_RDONLY);
|
return open(p, O_RDONLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
int net_tcp_open(void)
|
int net_tcp_open(void)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue