Fix updating entry XML with category element
[cascardo/atompub.git] / 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);
     }
 }