totem r5387 - in trunk: . src/backend



Author: hadess
Date: Sat May  3 23:17:21 2008
New Revision: 5387
URL: http://svn.gnome.org/viewvc/totem?rev=5387&view=rev

Log:
2008-05-04  Bastien Nocera  <hadess hadess net>

	* src/backend/video-utils.c (totem_display_is_local):
	Fix string checking, spotted by Will Thompson
	<will willthompson co uk> (Closes: #531261)



Modified:
   trunk/ChangeLog
   trunk/src/backend/video-utils.c

Modified: trunk/src/backend/video-utils.c
==============================================================================
--- trunk/src/backend/video-utils.c	(original)
+++ trunk/src/backend/video-utils.c	Sat May  3 23:17:21 2008
@@ -181,7 +181,7 @@
 
 	/* Get to the character after the colon */
 	work++;
-	if (work == NULL)
+	if (*work == '\0')
 		return TRUE;
 
 	if (sscanf (work, "%d.%d", &display, &screen) != 2)



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