Browse Source

Made G_str_to_sql \0-safe.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36618 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 16 years ago
parent
commit
676a9bd22d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/gis/strings.c

+ 1 - 1
lib/gis/strings.c

@@ -299,7 +299,7 @@ int G_str_to_sql(char *str)
 
     count = 0;
 
-    if (!str)
+    if (!str || !*str)
 	return 0;
 
     c = str;