From 7f6d91f90a3452469afdd33395b62c1670cd657f Mon Sep 17 00:00:00 2001 From: pinguin999 Date: Mon, 29 Sep 2014 15:11:31 +0200 Subject: [PATCH] strict compile init the struct before use --- spine-c/src/spine/Atlas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-c/src/spine/Atlas.c b/spine-c/src/spine/Atlas.c index d51cc945a..5aa3dcc43 100644 --- a/spine-c/src/spine/Atlas.c +++ b/spine-c/src/spine/Atlas.c @@ -120,7 +120,7 @@ static int readValue (const char* end, Str* str) { /* Returns the number of tuple values read (1, 2, 4, or 0 for failure). */ static int readTuple (const char* end, Str tuple[]) { int i; - Str str; + Str str = {NULL, NULL}; readLine(0, end, &str); if (!beginPast(&str, ':')) return 0;