[GRASS-SVN] r39014 - grass/trunk/gem
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 5 14:37:19 EDT 2009
Author: glynn
Date: 2009-09-05 14:37:18 -0400 (Sat, 05 Sep 2009)
New Revision: 39014
Modified:
grass/trunk/gem/tools.c
Log:
Fix undefined comparison of pointer to string literal
Modified: grass/trunk/gem/tools.c
===================================================================
--- grass/trunk/gem/tools.c 2009-09-05 18:36:37 UTC (rev 39013)
+++ grass/trunk/gem/tools.c 2009-09-05 18:37:18 UTC (rev 39014)
@@ -53,7 +53,7 @@
if ((backup != NULL) && (element != NULL)) {
free(backup);
}
- if ((element != NULL) && (element != "")) {
+ if ((element != NULL) && (*element != '\0')) {
backup = strdup(element);
}
}
More information about the grass-commit
mailing list