浏览代码

init pointer to NULL to prevent possible unclean free() (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38516 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 年之前
父节点
当前提交
0ebb0e0b93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      display/d.vect/plot1.c

+ 1 - 1
display/d.vect/plot1.c

@@ -66,7 +66,7 @@ int plot1(struct Map_info *Map, int type, int area, struct cat_list *Clist,
     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;