diff options
author | David Robillard <d@drobilla.net> | 2020-04-26 18:08:49 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-26 18:08:49 +0200 |
commit | 7f6b2dd74af5d574f9f699b288feb59eddabbf32 (patch) | |
tree | e0a8bd8e05901bdd2bca7284d17c7f2daee43a9d /src | |
parent | 7437636426da6509654130b0c485b3eee25412cb (diff) | |
download | serd-7f6b2dd74af5d574f9f699b288feb59eddabbf32.tar.gz serd-7f6b2dd74af5d574f9f699b288feb59eddabbf32.tar.bz2 serd-7f6b2dd74af5d574f9f699b288feb59eddabbf32.zip |
Fix potential passing of NULL to printf
Diffstat (limited to 'src')
-rw-r--r-- | src/writer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c index 8dddf51c..33619d34 100644 --- a/src/writer.c +++ b/src/writer.c @@ -129,7 +129,7 @@ w_err(SerdWriter* writer, SerdStatus st, const char* fmt, ...) va_list args; va_start(args, fmt); - const SerdError e = { st, NULL, 0, 0, fmt, &args }; + const SerdError e = { st, (const uint8_t*)"", 0, 0, fmt, &args }; serd_error(writer->error_sink, writer->error_handle, &e); va_end(args); } |