Author: kelnos
Date: 2006-12-08 23:23:06 +0000 (Fri, 08 Dec 2006)
New Revision: 24066
Modified:
xfdesktop/trunk/src/xfce-desktop-settings.c
Log:
fix possible crash with nonexistent or empty backdrop list file
(klocwork id 627)
Modified: xfdesktop/trunk/src/xfce-desktop-settings.c
===================================================================
--- xfdesktop/trunk/src/xfce-desktop-settings.c 2006-12-08 23:19:42 UTC (rev
24065)
+++ xfdesktop/trunk/src/xfce-desktop-settings.c 2006-12-08 23:23:06 UTC (rev
24066)
@@ -99,6 +99,9 @@
{
gint i, c = 0;
+ if(!list)
+ return 0;
+
for(i = 0; list[i]; i++) {
if(*list[i] && *list[i] != '\n')
c++;
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits