]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix a wild pointer bug that can cause crashes.
authorQuy Tonthat <qtonthat@gmail.com>
Tue, 19 Jun 2007 14:39:21 +0000 (14:39 +0000)
committerQuy Tonthat <qtonthat@gmail.com>
Tue, 19 Jun 2007 14:39:21 +0000 (14:39 +0000)
Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
ChangeLog
src/file.c

index b170a13fd2194c1d226b1a9a355813d4a95fec63..182c29880adbcb83be8b0d6680d2fa94943714a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-19
+Quy Tonthat <qtonthat@gmail.com>:
+       * Fix bugs that causes "drawcentermark" not recognised when reading
+       from files.
+       * Fix a wild pointer bug that can cause crashes
+
 2007-06-18
 Guilhem Bonnefille <guilhem.bonnefille@gmail.com>:
        * Copying libcurl.m4 as it is needed everywhere
index 54938204cbba14f1bbacece28d631c6902987d49..50b4e9e70d50b20121540cc086ba17cf97d0dcaa 100644 (file)
@@ -215,8 +215,8 @@ static void file_read ( VikAggregateLayer *top, FILE *f, gpointer vp )
   guint16 len;
   long line_num = 0;
 
-  VikLayerParam *params; /* for current layer, so we don't have to keep on looking up interface */
-  guint8 params_count;
+  VikLayerParam *params = NULL; /* for current layer, so we don't have to keep on looking up interface */
+  guint8 params_count = 0;
 
   push(&stack);
   stack->under = NULL;