diff options
Diffstat (limited to 'libmate-desktop/mate-bg.c')
-rw-r--r-- | libmate-desktop/mate-bg.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c index 2ff4e92..692992e 100644 --- a/libmate-desktop/mate-bg.c +++ b/libmate-desktop/mate-bg.c @@ -2855,10 +2855,15 @@ handle_text (GMarkupParseContext *context, GError **err) { SlideShow *parser = user_data; - Slide *slide = parser->slides->tail? parser->slides->tail->data : NULL; FileSize *fs; gint i; + g_return_if_fail (parser != NULL); + g_return_if_fail (parser->slides != NULL); + g_return_if_fail (parser->slides->tail != NULL); + + Slide *slide = parser->slides->tail->data; + if (stack_is (parser, "year", "starttime", "background", NULL)) { parser->start_tm.tm_year = parse_int (text) - 1900; } |