[Pkg-gnupg-commit] [gnupg2] 92/241: gpg: Consider newlines to be whitespace in an SQL statement.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Dec 9 20:31:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 18cd09246f5dcddcafb8662afd84fa046e36de3f
Author: Neal H. Walfield <neal at g10code.com>
Date:   Sat Oct 31 01:49:32 2015 +0100

    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 at g10code.com>
---
 g10/sqlite.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g10/sqlite.c b/g10/sqlite.c
index ee7514c..04f15d9 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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list