Avoid compiler warning
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 13 May 2013 07:29:25 +0000 (09:29 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 13 May 2013 07:41:33 +0000 (09:41 +0200)
src/data/gnumeric-reader.c

index 2356adcc761c421c9414eea081dbb56b6bb815c8..07c1814f8e4c2c7b349332b3abf021477824464e 100644 (file)
@@ -629,6 +629,7 @@ struct casereader *
 gnumeric_make_reader (struct spreadsheet *spreadsheet,
                      const struct spreadsheet_read_options *opts)
 {
+  int type = 0;
   int x = 0;
   struct gnumeric_reader *r = NULL;
   unsigned long int vstart = 0;
@@ -696,7 +697,7 @@ gnumeric_make_reader (struct spreadsheet *spreadsheet,
       n_cases --;
     }
 
-  int type = 0;
+
   /* Read in the first row of cells,
      including the headers if read_names was set */
   while (