mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-04 11:05:10 +00:00
coverity-detected bug: don't free "/"
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
25070b6601
commit
5cad2f04be
@ -263,7 +263,7 @@ const char *lxc_global_config_value(const char *option_name)
|
||||
if (user_home)
|
||||
user_home = strdup(user_home);
|
||||
else
|
||||
user_home = "/";
|
||||
user_home = strdup("/");
|
||||
|
||||
user_config_path = malloc(sizeof(char) * (22 + strlen(user_home)));
|
||||
user_lxc_path = malloc(sizeof(char) * (19 + strlen(user_home)));
|
||||
|
Loading…
Reference in New Issue
Block a user