summaryrefslogtreecommitdiff
path: root/statement.c
diff options
context:
space:
mode:
authorHeikki Linnakangas2013-04-18 19:36:05 +0000
committerHeikki Linnakangas2013-04-18 19:36:05 +0000
commit8c2cfe16696f894e4987ec41b8fbdd701d43ae55 (patch)
tree16005dad1af818f763f00d9d3576096b358d63da /statement.c
parentf0491363ab7abeb7ee3ed144bc4c957211c5135e (diff)
Initialize field to silence a Coverity false positive.
Coverity doesn't like the fact that the struct is passed to SC_set_rowset_start without initializing rowset_start field. It's OK, SC_set_rowset_start doesn't actually use the 'incr' value calculated from the field if the 3rd arg is FALSE, so this is a false positive, but seems like a good idea to be tidy here anyway.
Diffstat (limited to 'statement.c')
-rw-r--r--statement.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/statement.c b/statement.c
index eea40a1..961730f 100644
--- a/statement.c
+++ b/statement.c
@@ -407,6 +407,7 @@ SC_Constructor(ConnectionClass *conn)
rv->statement_type = STMT_TYPE_UNKNOWN;
rv->currTuple = -1;
+ rv->rowset_start = 0;
SC_set_rowset_start(rv, -1, FALSE);
rv->current_col = -1;
rv->bind_row = 0;