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>
This commit is contained in:
Neal H. Walfield 2015-10-31 01:49:32 +01:00
parent d89a9fca46
commit 18cd09246f
1 changed files with 1 additions and 1 deletions

View File

@ -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)