totem r5970 - in trunk: . src/backend



Author: hadess
Date: Thu Feb 12 15:20:57 2009
New Revision: 5970
URL: http://svn.gnome.org/viewvc/totem?rev=5970&view=rev

Log:
2009-02-12  Bastien Nocera  <hadess hadess net>

	* src/backend/bacon-video-widget-xine.c
	(bacon_video_widget_get_metadata_string): Fix possible crasher
	when the string is NULL (Closes: #571480)



Modified:
   trunk/ChangeLog
   trunk/src/backend/bacon-video-widget-xine.c

Modified: trunk/src/backend/bacon-video-widget-xine.c
==============================================================================
--- trunk/src/backend/bacon-video-widget-xine.c	(original)
+++ trunk/src/backend/bacon-video-widget-xine.c	Thu Feb 12 15:20:57 2009
@@ -3814,7 +3814,7 @@
 		string = NULL;
 
 	/* Remove line feeds */
-	if (strstr (string, "\n") != NULL)
+	if (string != NULL && strstr (string, "\n") != NULL)
 		g_strdelimit (string, "\n", " ");
 
 	if (string != NULL)



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