Skip to content

Commit

Permalink
fix argument to xmlSaveToBuffer
Browse files Browse the repository at this point in the history
Last argument is an int for options
  • Loading branch information
defunctzombie committed Dec 18, 2011
1 parent dce791e commit 9d26c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xml_node.cc
Expand Up @@ -247,7 +247,7 @@ XmlNode::to_string() {
xmlBuffer* buf = xmlBufferCreate();
const char* enc = "UTF-8";

xmlSaveCtxt* savectx = xmlSaveToBuffer(buf, enc, NULL);
xmlSaveCtxt* savectx = xmlSaveToBuffer(buf, enc, 0);
xmlSaveTree(savectx, xml_obj);
xmlSaveFlush(savectx);

Expand Down

0 comments on commit 9d26c52

Please sign in to comment.