[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 01/02: reset statement on error
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 01/02: reset statement on error |
Date: |
Fri, 10 Mar 2017 11:31:30 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit f729024c3472bbdf6575a1cf193ffe07bb0392af
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Mar 10 11:12:47 2017 +0100
reset statement on error
---
src/sq/sq.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/sq/sq.c b/src/sq/sq.c
index dc4416761..114de2d88 100644
--- a/src/sq/sq.c
+++ b/src/sq/sq.c
@@ -49,7 +49,14 @@ GNUNET_SQ_bind (sqlite3_stmt *stmt,
"sq",
_("Failure to bind %u-th SQL parameter\n"),
i);
- return GNUNET_SYSERR;
+ if (SQLITE_OK !=
+ sqlite3_reset (stmt))
+ {
+ GNUNET_log_from (GNUNET_ERROR_TYPE_WARNING,
+ "sq",
+ _("Failure in sqlite3_reset (!)\n"));
+ return GNUNET_SYSERR;
+ }
}
GNUNET_assert (0 != params[i].num_params);
j += params[i].num_params;
--
To stop receiving notification emails like this one, please contact
address@hidden