config: fix CID 1339831: Null pointer dereference
This commit is contained in:
parent
93d7c8cb29
commit
f8831d9c6a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue