gvfs r1545 - in trunk: . common



Author: otte
Date: Tue Mar  4 21:14:00 2008
New Revision: 1545
URL: http://svn.gnome.org/viewvc/gvfs?rev=1545&view=rev

Log:
2008-03-04  Benjamin Otte  <otte gnome org>

	* common/gmountspec.c: (g_mount_spec_set_with_len):
	add g_return_if_fail here - I had SEGVs sometime later due to values
	being NULL here. So better catch em early



Modified:
   trunk/ChangeLog
   trunk/common/gmountspec.c

Modified: trunk/common/gmountspec.c
==============================================================================
--- trunk/common/gmountspec.c	(original)
+++ trunk/common/gmountspec.c	Tue Mar  4 21:14:00 2008
@@ -139,6 +139,9 @@
   int i;
   char *value_copy;
 
+  g_return_if_fail (key != NULL);
+  g_return_if_fail (value != NULL);
+
   if (value_len == -1)
     value_copy = g_strdup (value);
   else



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