From b25009f777e7c52f9d025a3b84034b953cfbabba Mon Sep 17 00:00:00 2001 From: Ozkan Sezer 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 --- src/nanosvg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanosvg.h b/src/nanosvg.h index 14bbcf4c..64d05d68 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)