projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5f260e
)
elm_config.c: Check null for profile. I can be null.
author
Daniel Juyung Seo
<seojuyung2@gmail.com>
Fri, 8 Nov 2013 01:27:44 +0000
(10:27 +0900)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/src/lib/elm_config.c
b/src/lib/elm_config.c
index
c2fff03
..
8255eeb
100644
(file)
--- 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))