gengtype-state.c (read_state_params_structs): Initialize previous.
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 31 May 2011 16:24:08 +0000 (16:24 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Tue, 31 May 2011 16:24:08 +0000 (16:24 +0000)
* gengtype-state.c (read_state_params_structs): Initialize
previous.

From-SVN: r174491

gcc/ChangeLog
gcc/gengtype-state.c

index f4346fb7ba7a2867b43c7acffb3a0ae69c42f4ca..d7394abe494b59bb65317605141f98107962e80d 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
+
+       * gengtype-state.c (read_state_params_structs): Initialize
+       previous.
+
 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
index e9aa5d2ed8571be9df4e09fcb9e04925d75a973a..a885d28359ea800627a1cbb14cbb732e0eb59dcd 100644 (file)
@@ -2137,7 +2137,7 @@ read_state_param_structs (type_p *param_structs)
   int nbparamstructs = 0;
   int countparamstructs = 0;
   type_p head = NULL;
-  type_p previous;
+  type_p previous = NULL;
   type_p tmp;
   struct state_token_st *t0 = peek_state_token (0);
   struct state_token_st *t1 = peek_state_token (1);