elm_config.c: Check null for profile. I can be null.

This fixes coverity CID 1040032.
This commit is contained in:
Daniel Juyung Seo 2013-11-08 10:27:44 +09:00
parent 4c8d03894c
commit 822671c7e7
1 changed files with 2 additions and 0 deletions

View File

@ -2584,6 +2584,8 @@ elm_config_indicator_service_get(int rotation)
void
_elm_config_profile_set(const char *profile)
{
if (!profile) return;
if (_elm_profile)
{
if (!strcmp(_elm_profile, profile))