summaryrefslogtreecommitdiffstats
path: root/src/xplist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xplist.c')
-rw-r--r--src/xplist.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xplist.c b/src/xplist.c
index b404e79..e985243 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -190,9 +190,11 @@ static void node_to_xml(GNode * node, gpointer xml_struct)
190 190
191 case PLIST_DATA: 191 case PLIST_DATA:
192 tag = XPLIST_DATA; 192 tag = XPLIST_DATA;
193 valtmp = g_base64_encode(node_data->buff, node_data->length); 193 if (node_data->length) {
194 val = format_string(valtmp, 60, xstruct->depth); 194 valtmp = g_base64_encode(node_data->buff, node_data->length);
195 g_free(valtmp); 195 val = format_string(valtmp, 60, xstruct->depth);
196 g_free(valtmp);
197 }
196 break; 198 break;
197 case PLIST_ARRAY: 199 case PLIST_ARRAY:
198 tag = XPLIST_ARRAY; 200 tag = XPLIST_ARRAY;