summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xplist.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xplist.c b/src/xplist.c
index 87b21bb..36db07d 100644
--- a/src/xplist.c
+++ b/src/xplist.c
@@ -728,6 +728,14 @@ static void node_from_xml(parse_ctx ctx, plist_t *plist)
728 } else if (!strcmp(tag, XPLIST_REAL)) { 728 } else if (!strcmp(tag, XPLIST_REAL)) {
729 if (!is_empty) { 729 if (!is_empty) {
730 char *strval = get_text_content(ctx, tag, 1, 0); 730 char *strval = get_text_content(ctx, tag, 1, 0);
731 if (!strval) {
732 PLIST_XML_ERR("Couldn't get text content for '%s' node\n", tag);
733 ctx->pos = ctx->end;
734 ctx->err++;
735 free(tag);
736 free(keyname);
737 return;
738 }
731 data->realval = atof((char *) strval); 739 data->realval = atof((char *) strval);
732 free(strval); 740 free(strval);
733 } 741 }