[Xfce4-commits] r26623 - xfce4-panel/trunk/plugins/clock
Nick Schermer
nick at xfce.org
Sun Feb 17 21:30:42 CET 2008
Author: nick
Date: 2008-02-17 20:30:42 +0000 (Sun, 17 Feb 2008)
New Revision: 26623
Modified:
xfce4-panel/trunk/plugins/clock/clock.c
Log:
* return hour update interval when the string is null.
Modified: xfce4-panel/trunk/plugins/clock/clock.c
===================================================================
--- xfce4-panel/trunk/plugins/clock/clock.c 2008-02-17 12:47:49 UTC (rev 26622)
+++ xfce4-panel/trunk/plugins/clock/clock.c 2008-02-17 20:30:42 UTC (rev 26623)
@@ -123,7 +123,8 @@
const gchar *p;
guint interval = CLOCK_INTERVAL_HOUR;
- g_return_val_if_fail (format != NULL, CLOCK_INTERVAL_HOUR);
+ if (G_UNLIKELY (format == NULL))
+ return CLOCK_INTERVAL_HOUR;
for (p = format; *p != '\0'; ++p)
{
More information about the Xfce4-commits
mailing list