From 38acbf15b8acb286315c7eda5acf63f4cf471be1 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sun, 24 Nov 2024 18:40:52 +0100 Subject: Fix undefined NULL with image support disabled --- src/jpeg.c | 2 +- src/png.c | 2 +- src/webp.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jpeg.c b/src/jpeg.c index fb9e0ca5..d6f7cd7a 100644 --- a/src/jpeg.c +++ b/src/jpeg.c @@ -421,6 +421,6 @@ static void Jpeg_write(DilloJpeg *jpeg, void *Buf, uint_t BufSize) void *a_Jpeg_new() { return 0; } void a_Jpeg_callback() { return; } -const char *a_Jpeg_version(void) { return NULL; } +const char *a_Jpeg_version(void) { return 0; } #endif /* ENABLE_JPEG */ diff --git a/src/png.c b/src/png.c index 2aedc374..a1c3f3f1 100644 --- a/src/png.c +++ b/src/png.c @@ -471,6 +471,6 @@ void *a_Png_new(DilloImage *Image, DilloUrl *url, int version) void *a_Png_new() { return 0; } void a_Png_callback() { return; } -const char *a_Png_version(void) { return NULL; } +const char *a_Png_version(void) { return 0; } #endif /* ENABLE_PNG */ diff --git a/src/webp.c b/src/webp.c index bd0ad88d..77e6c7cf 100644 --- a/src/webp.c +++ b/src/webp.c @@ -215,6 +215,6 @@ void *a_Webp_new(DilloImage *Image, DilloUrl *url, int version) void *a_Webp_new() { return 0; } void a_Webp_callback() { return; } -const char *a_Webp_version(char *buf, int n) { return NULL; } +const char *a_Webp_version(char *buf, int n) { return 0; } #endif /* ENABLE_WEBP */ -- cgit v1.2.3