[GRASS-SVN] r34036 - grass/branches/develbranch_6/lib/ogsf

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 28 12:51:25 EDT 2008


Author: marisn
Date: 2008-10-28 12:51:25 -0400 (Tue, 28 Oct 2008)
New Revision: 34036

Modified:
   grass/branches/develbranch_6/lib/ogsf/GS2.c
Log:
Fix segfault due wrong pointer assignment in NVIZ raster query tool

Modified: grass/branches/develbranch_6/lib/ogsf/GS2.c
===================================================================
--- grass/branches/develbranch_6/lib/ogsf/GS2.c	2008-10-28 13:46:47 UTC (rev 34035)
+++ grass/branches/develbranch_6/lib/ogsf/GS2.c	2008-10-28 16:51:25 UTC (rev 34036)
@@ -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