eina vpath - warning - fix constness of string pointer

fixes bad const usage, butnot an actual bug.
This commit is contained in:
Carsten Haitzler 2018-11-06 17:01:47 +00:00
parent 9a4e25a7a8
commit 2ec2d97356
1 changed files with 3 additions and 3 deletions

View File

@ -161,9 +161,9 @@ _eina_vpath_interface_sys_init(void)
home = eina_environment_home_get(); home = eina_environment_home_get();
if (!home) if (!home)
{ {
home = _fallback_home_dir(); char *home2 = _fallback_home_dir();
_eina_vpath_data_add("home", home); _eina_vpath_data_add("home", home2);
free(home); free(home2);
} }
else else
_eina_vpath_data_add("home", home); _eina_vpath_data_add("home", home);