config: fix CID 1339831: Null pointer dereference

This commit is contained in:
Boris Faure 2015-11-19 21:08:16 +01:00
parent 93d7c8cb29
commit f8831d9c6a
1 changed files with 1 additions and 0 deletions

View File

@ -649,6 +649,7 @@ config_fork(Config *config)
EINA_LIST_FOREACH(config->keys, l, key)
{
Config_Keys *key2 = calloc(1, sizeof(Config_Keys));
if (!key2) break;
key2->keyname = key->keyname;
eina_stringshare_ref(key->keyname);
key2->ctrl = key->ctrl;