[GRASS-SVN] r62399 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 26 18:06:41 PDT 2014


Author: hcho
Date: 2014-10-26 18:06:41 -0700 (Sun, 26 Oct 2014)
New Revision: 62399

Modified:
   grass/trunk/lib/gis/ls_filter.c
Log:
wc2regex: Fix a segmentation fault

Modified: grass/trunk/lib/gis/ls_filter.c
===================================================================
--- grass/trunk/lib/gis/ls_filter.c	2014-10-27 00:25:46 UTC (rev 62398)
+++ grass/trunk/lib/gis/ls_filter.c	2014-10-27 01:06:41 UTC (rev 62399)
@@ -122,6 +122,9 @@
 	    add(buf, *p);
 	    break;
 	}
+
+	if (!p)
+	    return 0;
     }
 
     if (!p)



More information about the grass-commit mailing list