coverity-detected bug: don't free "/"

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Serge Hallyn 2013-12-23 11:14:58 -06:00
parent 25070b6601
commit 5cad2f04be

View File

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