mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
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:
parent
d89a9fca46
commit
18cd09246f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user