Эх сурвалжийг харах

strict compile

init the struct before use
pinguin999 11 жил өмнө
parent
commit
7f6d91f90a

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