From af4456ba68aa39ba2b41a01ad06de3b4b8ce2e87 Mon Sep 17 00:00:00 2001 From: Neil Bickford Date: Wed, 29 Mar 2023 11:57:27 -0700 Subject: [PATCH] stb_image: Apply https://github.com/nothings/stb/pull/1454 --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index d4fd2fc..12bc8c7 100644 --- a/stb_image.h +++ b/stb_image.h @@ -6547,7 +6547,7 @@ static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_c if (!stbi__pic_load_core(s,x,y,comp, result)) { STBI_FREE(result); - result=0; + return 0; } *px = x; *py = y;