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

(cherry picked from commit b25009f)
(cherry picked from commit 69c0367)
  • Loading branch information
sezero authored and slouken committed Dec 13, 2024
1 parent 4854a90 commit e475be2
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 e475be2

Please sign in to comment.