[GRASS-SVN] r38515 - grass/branches/develbranch_6/display/d.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jul 23 20:14:54 EDT 2009


Author: hamish
Date: 2009-07-23 20:14:53 -0400 (Thu, 23 Jul 2009)
New Revision: 38515

Modified:
   grass/branches/develbranch_6/display/d.vect/plot1.c
Log:
init pointer to NULL to prevent possible unclean free()

Modified: grass/branches/develbranch_6/display/d.vect/plot1.c
===================================================================
--- grass/branches/develbranch_6/display/d.vect/plot1.c	2009-07-23 21:48:10 UTC (rev 38514)
+++ grass/branches/develbranch_6/display/d.vect/plot1.c	2009-07-24 00:14:53 UTC (rev 38515)
@@ -155,7 +155,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