Author: abrander
Date: 2011-04-06 20:43:39 +0200 (Wed, 06 Apr 2011)
New Revision: 3958
Modified:
trunk/librawstudio/rs-debug.c
Log:
Added sanity check to rs_debug_setup().
Modified: trunk/librawstudio/rs-debug.c
===================================================================
--- trunk/librawstudio/rs-debug.c 2011-04-05 15:43:12 UTC (rev 3957)
+++ trunk/librawstudio/rs-debug.c 2011-04-06 18:43:39 UTC (rev 3958)
@@ -32,5 +32,7 @@
void
rs_debug_setup(const gchar *debug_string)
{
+ g_return_if_fail(debug_string != NULL);
+
rs_debug_flags = g_parse_debug_string(debug_string, rs_debug_keys,
G_N_ELEMENTS(rs_debug_keys));
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit