Commit 461c947d authored by Jonathan Beck's avatar Jonathan Beck

Only call g_base64_encode if there is data to encode.

parent 7139de79
......@@ -190,9 +190,11 @@ static void node_to_xml(GNode * node, gpointer xml_struct)
case PLIST_DATA:
tag = XPLIST_DATA;
if (node_data->length) {
valtmp = g_base64_encode(node_data->buff, node_data->length);
val = format_string(valtmp, 60, xstruct->depth);
g_free(valtmp);
}
break;
case PLIST_ARRAY:
tag = XPLIST_ARRAY;
......
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