aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-11-24 18:40:52 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-11-24 19:08:46 +0100
commit38acbf15b8acb286315c7eda5acf63f4cf471be1 (patch)
tree30652bece8be0845cf502af84e81d6c541d3a403 /src
parent6939e4f12e9d5b6c69aa994bbd6fc4046f8941e5 (diff)
Fix undefined NULL with image support disabled
Diffstat (limited to 'src')
-rw-r--r--src/jpeg.c2
-rw-r--r--src/png.c2
-rw-r--r--src/webp.c2
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 */