From 18cd09246f5dcddcafb8662afd84fa046e36de3f Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Sat, 31 Oct 2015 01:49:32 +0100 Subject: 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 --- g10/sqlite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3