Closed sezero closed 1 month ago
The following one-liner silences it for me: Is it good or may there be any subtleties I'm missing?
diff --git a/src/nanosvg.h b/src/nanosvg.h
index 14bbcf4..64d05d6 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)
Seems like a good fix, thanks!
Patch applied to SDL3 and SDL2 branches, and also submitted to mainstream at https://github.com/memononen/nanosvg/pull/256
Great, thanks!
As inlined below