tracker r3068 - trunk/src/tracker-indexer
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r3068 - trunk/src/tracker-indexer
- Date: Thu, 12 Mar 2009 18:22:59 +0000 (UTC)
Author: pvanhoof
Date: Thu Mar 12 18:22:59 2009
New Revision: 3068
URL: http://svn.gnome.org/viewvc/tracker?rev=3068&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/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 18:22:59 2009
@@ -346,8 +346,13 @@
statement->predicate = (void *) raptor_new_uri ((const guchar *) (key?key:""));
statement->predicate_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE;
- statement->object = (unsigned char *) g_strdup (value);
- statement->object_type = RAPTOR_IDENTIFIER_TYPE_LITERAL;
+ if (value) {
+ statement->object = (unsigned char *) g_strdup (value);
+ statement->object_type = RAPTOR_IDENTIFIER_TYPE_LITERAL;
+ } else {
+ statement->object = (void *) raptor_new_uri ((const guchar *) (""));
+ statement->object_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE;
+ }
raptor_serialize_statement (serializer,
statement);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]