Skip to content

Commit

Permalink
Merge pull request #329 from BBIGQ-LYQ/patch-1
Browse files Browse the repository at this point in the history
Update mxml-options.c
  • Loading branch information
michaelrsweet authored Jun 14, 2024
2 parents 804c4f4 + 3727b95 commit 68a9c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxml-options.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ _mxml_error(mxml_options_t *options, // I - Load/save options
va_end(ap);

// And then display the error message...
if (options->error_cb)
if (options && options->error_cb)
(options->error_cb)(options->error_cbdata, s);
else
fprintf(stderr, "%s\n", s);
Expand Down

0 comments on commit 68a9c50

Please sign in to comment.