[Xfce4-commits] <xfce4-weather-plugin:master> Remove assertion from parse_string().

Harald Judt noreply at xfce.org
Sat Jan 5 12:04:04 CET 2013


Updating branch refs/heads/master
         to 5e2b39acadfa4f23388d942346cc0b86e7056d7d (commit)
       from 452f5166f5fb2817c38a9ee637d91992c21b35e4 (commit)

commit 5e2b39acadfa4f23388d942346cc0b86e7056d7d
Author: Harald Judt <h.judt at gmx.at>
Date:   Fri Jan 4 18:55:24 2013 +0100

    Remove assertion from parse_string().
    
    The assertion fails when astrodata does not contain a valid time for
    sunrise/sunset etc. This is to be expected but causes an error when
    debugging, and we're dealing with it anyway.

 panel-plugin/weather-parsers.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/weather-parsers.c b/panel-plugin/weather-parsers.c
index d6e543e..0e16386 100644
--- a/panel-plugin/weather-parsers.c
+++ b/panel-plugin/weather-parsers.c
@@ -101,7 +101,6 @@ parse_timestring(const gchar *ts,
     struct tm tm;
 
     memset(&t, 0, sizeof(time_t));
-    g_assert(ts != NULL);
     if (G_UNLIKELY(ts == NULL))
         return t;
 


More information about the Xfce4-commits mailing list