[GRASS-SVN] r34039 - grass/trunk/lib/ogsf

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 28 17:53:33 EDT 2008


Author: martinl
Date: 2008-10-28 17:53:32 -0400 (Tue, 28 Oct 2008)
New Revision: 34039

Modified:
   grass/trunk/lib/ogsf/GS2.c
Log:
marisn: Fix segfault due wrong pointer assignment in NVIZ raster query tool
(merge from devbr6, r34036)


Modified: grass/trunk/lib/ogsf/GS2.c
===================================================================
--- grass/trunk/lib/ogsf/GS2.c	2008-10-28 21:51:33 UTC (rev 34038)
+++ grass/trunk/lib/ogsf/GS2.c	2008-10-28 21:53:32 UTC (rev 34039)
@@ -1168,7 +1168,7 @@
     typbuff *buff;
     geosurf *gs;
 
-    catstr[0] = '\0';
+    *catstr = '\0';
     gs = gs_get_surf(id);
 
     if (NULL == gs) {
@@ -1298,7 +1298,7 @@
     typbuff *buff;
     geosurf *gs;
 
-    valstr = '\0';
+    *valstr = '\0';
     gs = gs_get_surf(id);
 
     if (NULL == gs) {



More information about the grass-commit mailing list