diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-04 22:27:57 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-04 22:27:57 +0000 |
commit | 9619cfc65cc4b28eefac8fc9624acf6995c4f66d (patch) | |
tree | f7a1f9813fc4d407e97368a21e21dafdd21d18ca /src/datastore/plugin_datastore_sqlite.c | |
parent | 2efa11e99bec25a3a64c8fae20d7641345c8df9f (diff) | |
download | gnunet-9619cfc65cc4b28eefac8fc9624acf6995c4f66d.tar.gz gnunet-9619cfc65cc4b28eefac8fc9624acf6995c4f66d.zip |
fix
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index cecdf094f..0b575c981 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c | |||
@@ -1609,9 +1609,11 @@ process_stat_done (void *cls, | |||
1609 | sq_prepare (plugin->dbh, | 1609 | sq_prepare (plugin->dbh, |
1610 | "PRAGMA page_count", | 1610 | "PRAGMA page_count", |
1611 | &stmt)); | 1611 | &stmt)); |
1612 | CHECK (SQLITE_ROW == | 1612 | if (SQLITE_ROW == |
1613 | sqlite3_step (stmt)); | 1613 | sqlite3_step (stmt)) |
1614 | pages = sqlite3_column_int64 (stmt, 0); | 1614 | pages = sqlite3_column_int64 (stmt, 0); |
1615 | else | ||
1616 | pages = 0; | ||
1615 | sqlite3_finalize (stmt); | 1617 | sqlite3_finalize (stmt); |
1616 | CHECK (SQLITE_OK == | 1618 | CHECK (SQLITE_OK == |
1617 | sq_prepare (plugin->dbh, | 1619 | sq_prepare (plugin->dbh, |