seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=b38bc31c7586056eb39f6f17d0a9809e3cdad097

commit b38bc31c7586056eb39f6f17d0a9809e3cdad097
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Fri Nov 8 10:27:44 2013 +0900

    elm_config.c: Check null for profile. I can be null.
    
    This fixes coverity CID 1040032.
---
 src/lib/elm_config.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/elm_config.c b/src/lib/elm_config.c
index c2fff03..8255eeb 100644
--- a/src/lib/elm_config.c
+++ b/src/lib/elm_config.c
@@ -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))

-- 


Reply via email to