elm_config.c: Check null for profile. I can be null.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Fri, 8 Nov 2013 01:27:44 +0000 (10:27 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Fri, 8 Nov 2013 01:27:44 +0000 (10:27 +0900)
This fixes coverity CID 1040032.

src/lib/elm_config.c

index c2fff03..8255eeb 100644 (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))