config: fixed dereferencing null pointer issue.

This fixes coverity CID 1100654.
This commit is contained in:
Daniel Juyung Seo 2013-11-08 08:35:39 +09:00
parent 20afe23c5b
commit b242383234
1 changed files with 2 additions and 1 deletions

View File

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