gtk-css-engine r28 - in bzr-playground: . libccd/ccd



Author: robsta
Date: Mon Aug 18 13:51:09 2008
New Revision: 28
URL: http://svn.gnome.org/viewvc/gtk-css-engine?rev=28&view=rev

Log:
Don't crash on missing image.

Modified:
   bzr-playground/   (props changed)
   bzr-playground/libccd/ccd/ccd-image.c

Modified: bzr-playground/libccd/ccd/ccd-image.c
==============================================================================
--- bzr-playground/libccd/ccd/ccd-image.c	(original)
+++ bzr-playground/libccd/ccd/ccd-image.c	Mon Aug 18 13:51:09 2008
@@ -49,6 +49,8 @@
 	char const	*hash;
 	char		*basename;
 
+	g_return_val_if_fail (uri, NULL);
+
 	suffix = strrchr (uri, '.');
 	hash = strrchr (uri, '#');
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]