Skip to content

Commit

Permalink
Fix writing of custom data nodes (Issue #201)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Oct 11, 2017
1 parent 78f0221 commit ef7e5d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mxml-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ef7e5d4

Please sign in to comment.