re PR preprocessor/39512 (linemap_init in lex.c does not initialize reallocator)
authorTom Tromey <tromey@redhat.com>
Mon, 30 Mar 2009 15:25:42 +0000 (15:25 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 30 Mar 2009 15:25:42 +0000 (15:25 +0000)
PR preprocessor/39512:
* line-map.c (linemap_init): Initialize 'reallocator' field.

From-SVN: r145300

libcpp/ChangeLog
libcpp/line-map.c

index 4bf5869..2672832 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-30  Tom Tromey  <tromey@redhat.com>
+
+       PR preprocessor/39512:
+       * line-map.c (linemap_init): Initialize 'reallocator' field.
+
 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/39558
index 2802c67..1c82902 100644 (file)
@@ -41,6 +41,7 @@ linemap_init (struct line_maps *set)
   set->highest_location = 0;
   set->highest_line = 0;
   set->max_column_hint = 0;
+  set->reallocator = 0;
 }
 
 /* Check for and warn about line_maps entered but not exited.  */