From 580fde5ad21d7ebd031476a3c6af9c7df18c4c25 Mon Sep 17 00:00:00 2001 From: Stephen Lombardo Date: Tue, 4 Dec 2018 08:51:23 -0500 Subject: [PATCH] properly filter empty lines as reported in #293 --- src/shell.c.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell.c.in b/src/shell.c.in index a7e209ab..aefa765a 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -639,7 +639,7 @@ static char *one_input_line(FILE *in, char *zPrior, int isContinuation){ PRAGMA rekey statements from being stored in readline history. Note that this will only prevent single line statements, but that will be sufficient for common cases. */ - if(sqlite3_strlike("%pragma%key%=%", zResult, 0)==0) return zResult; + if(zResult && *zResult && sqlite3_strlike("%pragma%key%=%", zResult, 0)==0) return zResult; #endif /* END SQLCIPHER */ if( zResult && *zResult ) shell_add_history(zResult); -- 2.11.4.GIT