tracker r3095 - in trunk: . src/tracker-extract



Author: carlosg
Date: Tue Mar 17 10:12:52 2009
New Revision: 3095
URL: http://svn.gnome.org/viewvc/tracker?rev=3095&view=rev

Log:
2009-03-17  Carlos Garnacho  <carlos imendio com>

        * src/tracker-extract/tracker-escape.c (tracker_escape_metadata):
        Handle NULL strings. Fixes NB#106201.

Modified:
   trunk/ChangeLog
   trunk/src/tracker-extract/tracker-escape.c

Modified: trunk/src/tracker-extract/tracker-escape.c
==============================================================================
--- trunk/src/tracker-extract/tracker-escape.c	(original)
+++ trunk/src/tracker-extract/tracker-escape.c	Tue Mar 17 10:12:52 2009
@@ -33,6 +33,10 @@
 {
 	const gchar *end;
 
+	if (!str) {
+		return NULL;
+	}
+
 	if (g_utf8_validate (str, -1, &end)) {
 		return g_strstrip (g_strdup (str));
 	}



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