Kaynağa Gözat

marisn: Fix segfault due wrong pointer assignment in NVIZ raster query tool
(merge from devbr6, https://trac.osgeo.org/grass/changeset/34036)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34039 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 yıl önce
ebeveyn
işleme
ee116655ef
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      lib/ogsf/GS2.c

+ 2 - 2
lib/ogsf/GS2.c

@@ -1168,7 +1168,7 @@ int GS_get_cat_at_xy(int id, int att, char *catstr, float x, float y)
     typbuff *buff;
     geosurf *gs;
 
-    catstr[0] = '\0';
+    *catstr = '\0';
     gs = gs_get_surf(id);
 
     if (NULL == gs) {
@@ -1298,7 +1298,7 @@ int GS_get_val_at_xy(int id, int att, char *valstr, float x, float y)
     typbuff *buff;
     geosurf *gs;
 
-    valstr = '\0';
+    *valstr = '\0';
     gs = gs_get_surf(id);
 
     if (NULL == gs) {