mirror of
git://github.com/lxc/lxc
synced 2025-08-31 03:29:34 +00:00
coverity-detected bug: don't free "/"
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
@@ -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)));
|
||||
|
Reference in New Issue
Block a user