summaryrefslogtreecommitdiff
path: root/libyelp/yelp-settings.c
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2010-04-30 11:30:31 -0500
committerShaun McCance <shaunm@gnome.org>2010-04-30 11:30:31 -0500
commit0f58a0fa27743fc09726b8ae20447c69b637ea82 (patch)
tree3aa42b59ff359c92b1983166ee011829273df8c8 /libyelp/yelp-settings.c
parent41bfb594adb3c3ea594c49924f31226c754559c0 (diff)
downloadyelp-0f58a0fa27743fc09726b8ae20447c69b637ea82.tar.gz
Handle NULL better in page sorting functions
Diffstat (limited to 'libyelp/yelp-settings.c')
-rw-r--r--libyelp/yelp-settings.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c
index 087e6a64..7f2139fc 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -959,7 +959,9 @@ yelp_settings_cmp_icons (const gchar *icon1,
else if (eq2)
return 1;
}
- if (icon2 == NULL)
+ if (icon1 == icon2 == NULL)
+ return 0;
+ else if (icon2 == NULL)
return -1;
else if (icon1 == NULL)
return 1;