summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@g10code.com>2015-10-31 01:49:32 +0100
committerNeal H. Walfield <neal@g10code.com>2015-10-31 01:50:51 +0100
commit18cd09246f5dcddcafb8662afd84fa046e36de3f (patch)
tree3cdfd2ba7cd4abaf4e07a5675ec41b62cb340517
parentcommon: Improve t-zb32 to be used for manual encoding. (diff)
downloadgnupg2-18cd09246f5dcddcafb8662afd84fa046e36de3f.tar.xz
gnupg2-18cd09246f5dcddcafb8662afd84fa046e36de3f.zip
gpg: Consider newlines to be whitespace in an SQL statement.
* g10/sqlite.c (sqlite3_stepx): When making sure that there is no second SQL statement, ignore newlines. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
-rw-r--r--g10/sqlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/sqlite.c b/g10/sqlite.c
index ee7514c99..04f15d90c 100644
--- a/g10/sqlite.c
+++ b/g10/sqlite.c
@@ -105,7 +105,7 @@ sqlite3_stepx (sqlite3 *db,
/* We can only process a single statement. */
if (tail)
{
- while (*tail == ' ' || *tail == ';')
+ while (*tail == ' ' || *tail == ';' || *tail == '\n')
tail ++;
if (*tail)