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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 7 22:39:44 EDT 2009


Author: hcho
Date: 2009-04-07 22:39:44 -0400 (Tue, 07 Apr 2009)
New Revision: 36618

Modified:
   grass/trunk/lib/gis/strings.c
Log:
Made G_str_to_sql \0-safe.

Modified: grass/trunk/lib/gis/strings.c
===================================================================
--- grass/trunk/lib/gis/strings.c	2009-04-08 02:38:03 UTC (rev 36617)
+++ grass/trunk/lib/gis/strings.c	2009-04-08 02:39:44 UTC (rev 36618)
@@ -299,7 +299,7 @@
 
     count = 0;
 
-    if (!str)
+    if (!str || !*str)
 	return 0;
 
     c = str;



More information about the grass-commit mailing list