tracker r3058 - in trunk: . src/tracker-indexer
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r3058 - in trunk: . src/tracker-indexer
- Date: Thu, 12 Mar 2009 11:37:37 +0000 (UTC)
Author: pvanhoof
Date: Thu Mar 12 11:37:36 2009
New Revision: 3058
URL: http://svn.gnome.org/viewvc/tracker?rev=3058&view=rev
Log:
2009-03-12 Philip Van Hoof <philip codeminded be>
* src/tracker-indexer/tracker-removable-device.c: Fixed a crash when
removing a resource from a removable device
Modified:
trunk/ChangeLog
trunk/src/tracker-indexer/tracker-removable-device.c
Modified: trunk/src/tracker-indexer/tracker-removable-device.c
==============================================================================
--- trunk/src/tracker-indexer/tracker-removable-device.c (original)
+++ trunk/src/tracker-indexer/tracker-removable-device.c Thu Mar 12 11:37:36 2009
@@ -343,10 +343,11 @@
statement->subject = (void *) raptor_new_uri ((const unsigned char *) about_uri);
statement->subject_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE;
- statement->predicate = (void *) raptor_new_uri ((const unsigned char *) key);
+ statement->predicate = (void *) raptor_new_uri ((const guchar *) (key?key:""));
statement->predicate_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE;
- statement->object = (unsigned char *) g_strdup (value);
+ /* Don't let g_strdup handle NULL, else it returns NULL. We need "" */
+ statement->object = (unsigned char *) g_strdup (value?value:"");
statement->object_type = RAPTOR_IDENTIFIER_TYPE_LITERAL;
raptor_serialize_statement (serializer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]