SDL_image: nanosvg.h (nsvg__parseTransform): initialize the local float t[0] (e475b)

From e475be2d819a8a3424f3f0610f46563bb227c5ab Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 31 May 2024 20:02:02 +0300
Subject: [PATCH] nanosvg.h (nsvg__parseTransform): initialize the local float
 t[0]

Silences -Wmaybe-uninitialized warnings from gcc-14
Fixes https://github.com/libsdl-org/SDL_image/issues/452

(cherry picked from commit b25009f777e7c52f9d025a3b84034b953cfbabba)
(cherry picked from commit 69c036739ba5434657b1ddbc47fcfd3104b3c93b)
---
 src/nanosvg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nanosvg.h b/src/nanosvg.h
index 2e554231..93454160 100644
--- a/src/nanosvg.h
+++ b/src/nanosvg.h
@@ -1686,7 +1686,7 @@ static int nsvg__parseRotate(float* xform, const char* str)
 
 static void nsvg__parseTransform(float* xform, const char* str)
 {
-	float t[6];
+	float t[6] = { 0 };
 	int len;
 	nsvg__xformIdentity(xform);
 	while (*str)