[GRASS-SVN] r39511 - grass/branches/develbranch_6/lib/db/dbmi_client
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 13 13:02:35 EDT 2009
Author: martinl
Date: 2009-10-13 13:02:34 -0400 (Tue, 13 Oct 2009)
New Revision: 39511
Modified:
grass/branches/develbranch_6/lib/db/dbmi_client/select.c
Log:
zero dbValue before copying values
(merge r39510 from relbr64)
Modified: grass/branches/develbranch_6/lib/db/dbmi_client/select.c
===================================================================
--- grass/branches/develbranch_6/lib/db/dbmi_client/select.c 2009-10-13 14:12:44 UTC (rev 39510)
+++ grass/branches/develbranch_6/lib/db/dbmi_client/select.c 2009-10-13 17:02:34 UTC (rev 39511)
@@ -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