summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmate-desktop/mate-bg.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c
index 8666b73..b0c3c90 100644
--- a/libmate-desktop/mate-bg.c
+++ b/libmate-desktop/mate-bg.c
@@ -2857,15 +2857,10 @@ 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;
}