From ef7e5d433c0fac4ab74c8e571e15fd71667f6f56 Mon Sep 17 00:00:00 2001 From: Michael Sweet Date: Wed, 11 Oct 2017 17:13:37 -0400 Subject: [PATCH] Fix writing of custom data nodes (Issue #201) --- CHANGES.md | 1 + mxml-file.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index e3347d7..a954dbf 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,7 @@ - The mxmldoc utility now supports the `SOURCE_DATE_EPOCH` environment variable for reproducible builds (Issue #193) - The mxmldoc utility now supports Markdown (Issue #194) +- Fixed writing of custom data values (Issue #201) - Added `mxmlNewOpaquef` and `mxmlSetOpaquef` functions to add and set formatted opaque string values. - The mxmldoc utility scanned and loaded descriptive text differently, causing diff --git a/mxml-file.c b/mxml-file.c index ec106a7..cc79279 100644 --- a/mxml-file.c +++ b/mxml-file.c @@ -2929,7 +2929,7 @@ mxml_write_node(mxml_node_t *node, /* I - Node to write */ const char *newline; /* Last newline in string */ - if ((data = (*global->custom_save_cb)(node)) == NULL) + if ((data = (*global->custom_save_cb)(current)) == NULL) return (-1); if (mxml_write_string(data, p, putc_cb) < 0)