Merge pull request #329 from BBIGQ-LYQ/patch-1

Update mxml-options.c
This commit is contained in:
Michael R Sweet 2024-06-14 06:25:53 -04:00 committed by GitHub
commit 68a9c50f5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);