From e4efd61cfecebe37d744be1f4a126021b54dfe15 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 14 Feb 2011 19:49:07 +0000 Subject: [PATCH] background: Fix comparisons of gradients --- panels/background/cc-background-item.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panels/background/cc-background-item.c b/panels/background/cc-background-item.c index 24615c3ed..df7d41eaf 100644 --- a/panels/background/cc-background-item.c +++ b/panels/background/cc-background-item.c @@ -857,6 +857,10 @@ files_equal (const char *a, GFile *file1, *file2; gboolean retval; + if (a == NULL && + b == NULL) + return TRUE; + if (a == NULL || b == NULL) return FALSE;