diff options
author | Neal H. Walfield <neal@g10code.com> | 2015-10-31 01:49:32 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@g10code.com> | 2015-10-31 01:50:51 +0100 |
commit | 18cd09246f5dcddcafb8662afd84fa046e36de3f (patch) | |
tree | 3cdfd2ba7cd4abaf4e07a5675ec41b62cb340517 | |
parent | common: Improve t-zb32 to be used for manual encoding. (diff) | |
download | gnupg2-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.c | 2 |
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) |