aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-config.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-12-15 07:57:08 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-12-15 07:57:08 +0800
commit529ca53ef010a9d9d813e5c6510fc3c998ae0687 (patch)
tree4b32029d42c2e255763e092e0c4d627924d8b422 /calendar/gui/calendar-config.c
parent221c844005af7f593db7a4570ecda72be1ca69f1 (diff)
downloadgsoc2013-evolution-529ca53ef010a9d9d813e5c6510fc3c998ae0687.tar
gsoc2013-evolution-529ca53ef010a9d9d813e5c6510fc3c998ae0687.tar.gz
gsoc2013-evolution-529ca53ef010a9d9d813e5c6510fc3c998ae0687.tar.bz2
gsoc2013-evolution-529ca53ef010a9d9d813e5c6510fc3c998ae0687.tar.lz
gsoc2013-evolution-529ca53ef010a9d9d813e5c6510fc3c998ae0687.tar.xz
gsoc2013-evolution-529ca53ef010a9d9d813e5c6510fc3c998ae0687.tar.zst
gsoc2013-evolution-529ca53ef010a9d9d813e5c6510fc3c998ae0687.zip
set a proper exception if we fail
2003-12-14 JP Rosevear <jpr@ximian.com> * gui/calendar-component.c (impl_requestCreateItem): set a proper exception if we fail 2003-12-14 JP Rosevear <jpr@ximian.com> * gui/calendar-config.c (calendar_config_get_hide_completed_tasks_units): make sure the string is non-null before strcmp'ing it Fixes #52033 svn path=/trunk/; revision=23938
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r--calendar/gui/calendar-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index 3c12c381ac..fea9311b2c 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -622,9 +622,9 @@ calendar_config_get_hide_completed_tasks_units (void)
units = gconf_client_get_string (config, CALENDAR_CONFIG_TASKS_HIDE_COMPLETED_UNITS, NULL);
- if (!strcmp (units, "minutes"))
+ if (units && !strcmp (units, "minutes"))
cu = CAL_MINUTES;
- else if (!strcmp (units, "hours"))
+ else if (units && !strcmp (units, "hours"))
cu = CAL_HOURS;
else
cu = CAL_DAYS;