rhythmbox r5894 - in trunk: . lib



Author: jmatthew
Date: Sun Sep  7 12:09:05 2008
New Revision: 5894
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5894&view=rev

Log:
2008-09-07  Jonathan Matthew  <jonathan d14n org>

	* lib/rb-file-helpers.c: (rb_uri_create_parent_dirs):
	Fail a bit less vigorously for badly formed URIs.


Modified:
   trunk/ChangeLog
   trunk/lib/rb-file-helpers.c

Modified: trunk/lib/rb-file-helpers.c
==============================================================================
--- trunk/lib/rb-file-helpers.c	(original)
+++ trunk/lib/rb-file-helpers.c	Sun Sep  7 12:09:05 2008
@@ -941,6 +941,10 @@
 	file = g_file_new_for_uri (uri);
 	parent = g_file_get_parent (file);
 	g_object_unref (file);
+	if (parent == NULL) {
+		/* now what? */
+		return TRUE;
+	}
 
 #if GLIB_CHECK_VERSION(2,17,1)
 	ret = check_file_is_directory (parent, error);



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