forked from enlightenment/terminology
config: fixed dereferencing null pointer issue.
This fixes coverity CID 1100654.
This commit is contained in:
parent
20afe23c5b
commit
b242383234
|
@ -448,7 +448,8 @@ config_load(const char *key)
|
|||
}
|
||||
}
|
||||
|
||||
config->config_key = eina_stringshare_add(key); /* not in eet */
|
||||
if (config)
|
||||
config->config_key = eina_stringshare_add(key); /* not in eet */
|
||||
|
||||
return config;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue