Commit d70dc9d2 authored by Philip Van Hoof's avatar Philip Van Hoof Committed by Philip Van Hoof

Fixed a crash when removing a resource from a removable device

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


svn path=/trunk/; revision=3058
parent aa33289f
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
2009-03-11 Carlos Garnacho <carlos@imendio.com>
* src/tracker-extract/tracker-extract-pdf.c (extract_pdf): Also
......
......@@ -343,10 +343,11 @@ set_metadata (const gchar *key, const gchar *value, gpointer user_data)
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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment