Skip to content

Commit

Permalink
nanosvg.h (nsvg__parseTransform): initialize the local float t[0]
Browse files Browse the repository at this point in the history
Silences -Wmaybe-uninitialized warnings from gcc-14
Fixes #452
  • Loading branch information
sezero committed May 31, 2024
1 parent 7c50e4f commit b25009f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanosvg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b25009f

Please sign in to comment.