rhythmbox r5779 - in trunk: . plugins/daap



Author: jmatthew
Date: Fri Jun 27 11:03:07 2008
New Revision: 5779
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5779&view=rev

Log:
2008-06-27  Jonathan Matthew  <jonathan d14n org>

	* plugins/daap/rb-daap-share.c: (parse_meta):
	Don't crash if there's no 'meta=' query arg in the request.
	Probably fixes #540391.


Modified:
   trunk/ChangeLog
   trunk/plugins/daap/rb-daap-share.c

Modified: trunk/plugins/daap/rb-daap-share.c
==============================================================================
--- trunk/plugins/daap/rb-daap-share.c	(original)
+++ trunk/plugins/daap/rb-daap-share.c	Fri Jun 27 11:03:07 2008
@@ -1302,6 +1302,9 @@
 	const gchar *attrs;
 
 	attrs = g_hash_table_lookup (query, "meta");
+	if (attrs == NULL) {
+		return 0;
+	}
 	return parse_meta_str (attrs);
 }
 



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