]> git.sur5r.net Git - cc65/commitdiff
Fixed an uninitiated pointer.
authorGreg King <gregdk@users.sf.net>
Tue, 30 Jun 2015 12:54:13 +0000 (08:54 -0400)
committerGreg King <gregdk@users.sf.net>
Tue, 30 Jun 2015 12:54:13 +0000 (08:54 -0400)
test/val/cc65141022.c

index d5aadd240735ee43c4f2814e2b82ed7843e62d90..1d7792cf203ae00e1fcdba56da47a231658812a8 100755 (executable)
@@ -19,13 +19,13 @@ struct yywork
 struct yysvf
 {
         struct yywork *yystoff;
-};
+} yysvec[1];
 
 unsigned char fails = 0;
 
 int main(int n, char **args)
 {
-    struct yysvf *yystate;
+    struct yysvf *yystate = yysvec;
     struct yywork *yyt;
 
     yystate->yystoff = yycrank;