Fix bogus return value and let this build with clang 15

This commit is contained in:
jca 2023-01-24 17:53:35 +00:00
parent feb45f90be
commit 3079f632f4
2 changed files with 15 additions and 1 deletions

View File

@ -1,7 +1,7 @@
COMMENT= GNU Image Manipulation Program
DISTNAME = gimp-2.10.32
REVISION = 2
REVISION = 3
PKGSPEC = gimp->=2,<2.99
.for i in gimp gimpbase gimpcolor gimpconfig gimpmath gimpmodule \

View File

@ -0,0 +1,14 @@
Fix return value.
Index: plug-ins/common/file-dicom.c
--- plug-ins/common/file-dicom.c.orig
+++ plug-ins/common/file-dicom.c
@@ -602,7 +602,7 @@ load_image (const gchar *filename,
(gchar *) value, samples_per_pixel);
g_free (dicominfo);
fclose (DICOM);
- return NULL;
+ return -1;
}
break;