summaryrefslogtreecommitdiff
path: root/src/bin/e_bg.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2007-08-17 17:23:06 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2007-08-17 17:23:06 +0000
commit4480e0a947b26c2545afa136c6bc2e3e40308274 (patch)
tree2c2ddbece33ea138a8842de3a965f45d947ce8a0 /src/bin/e_bg.c
parentc865286d761d5bcf62366464f7ca0d94e319ff79 (diff)
Better check for 0 stringlength.
SVN revision: 31369
Diffstat (limited to 'src/bin/e_bg.c')
-rw-r--r--src/bin/e_bg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/e_bg.c b/src/bin/e_bg.c
index 07af67d..f9256bd 100644
--- a/src/bin/e_bg.c
+++ b/src/bin/e_bg.c
@@ -152,7 +152,7 @@ e_bg_zone_update(E_Zone *zone, E_Bg_Transition transition)
152 if (transition == E_BG_TRANSITION_START) trans = e_config->transition_start; 152 if (transition == E_BG_TRANSITION_START) trans = e_config->transition_start;
153 else if (transition == E_BG_TRANSITION_DESK) trans = e_config->transition_desk; 153 else if (transition == E_BG_TRANSITION_DESK) trans = e_config->transition_desk;
154 else if (transition == E_BG_TRANSITION_CHANGE) trans = e_config->transition_change; 154 else if (transition == E_BG_TRANSITION_CHANGE) trans = e_config->transition_change;
155 if ((!trans) || (strlen(trans) < 1)) transition = E_BG_TRANSITION_NONE; 155 if ((!trans) || (!trans[0])) transition = E_BG_TRANSITION_NONE;
156 156
157 desk = e_desk_current_get(zone); 157 desk = e_desk_current_get(zone);
158 if (desk) 158 if (desk)