[GRASS-SVN] r39512 - grass/trunk/lib/db/dbmi_client
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 13 13:15:48 EDT 2009
Author: martinl
Date: 2009-10-13 13:15:48 -0400 (Tue, 13 Oct 2009)
New Revision: 39512
Modified:
grass/trunk/lib/db/dbmi_client/select.c
Log:
zero dbValue before copying values
(merge r39510 from relbr64)
Modified: grass/trunk/lib/db/dbmi_client/select.c
===================================================================
--- grass/trunk/lib/db/dbmi_client/select.c 2009-10-13 17:02:34 UTC (rev 39511)
+++ grass/trunk/lib/db/dbmi_client/select.c 2009-10-13 17:15:48 UTC (rev 39512)
@@ -203,6 +203,7 @@
dbValue *value;
dbTable *table;
+ G_zero(val, sizeof(dbValue));
sprintf(buf, "SELECT %s FROM %s WHERE %s = %d\n", col, tab, key, id);
db_init_string(&stmt);
db_append_string(&stmt, buf);
More information about the grass-commit
mailing list