Fix updating entry XML with category element
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Tue, 6 Jan 2009 23:20:37 +0000 (21:20 -0200)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Tue, 6 Jan 2009 23:20:37 +0000 (21:20 -0200)
When updating the entry XML, the category object was being added instead
of the category XML element.

atom/entry.c

index 6189447..ff414ee 100644 (file)
@@ -321,7 +321,7 @@ atom_entry_update_xmlnode (AtomEntry *entry)
       AtomCategory *category;
       category = g_ptr_array_index (entry->categories, i);
       cat = atom_category_to_xmlnode (category, "category");
-      xmlAddChild (root, category);
+      xmlAddChild (root, cat);
     }
 }