Parcourir la source

strict compile

init the struct before use
pinguin999 il y a 11 ans
Parent
commit
7f6d91f90a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      spine-c/src/spine/Atlas.c

+ 1 - 1
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;