[GRASS-SVN] r38516 - grass/trunk/display/d.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 23 20:16:00 EDT 2009


Author: hamish
Date: 2009-07-23 20:15:59 -0400 (Thu, 23 Jul 2009)
New Revision: 38516

Modified:
   grass/trunk/display/d.vect/plot1.c
Log:
init pointer to NULL to prevent possible unclean free() (merge from devbr6)

Modified: grass/trunk/display/d.vect/plot1.c
===================================================================
--- grass/trunk/display/d.vect/plot1.c	2009-07-24 00:14:53 UTC (rev 38515)
+++ grass/trunk/display/d.vect/plot1.c	2009-07-24 00:15:59 UTC (rev 38516)
@@ -66,7 +66,7 @@
     RGBA_Color *line_color, *fill_color, *primary_color;
     unsigned char which;
     int width;
-    SYMBOL *Symb;
+    SYMBOL *Symb = NULL;
     double var_size, rotation;
 
     var_size = (double)size;



More information about the grass-commit mailing list