From c0506beeac8e92586d1dcdaa0aceeed366c8b62d Mon Sep 17 00:00:00 2001
From: Joe Mistachkin <sqlite@mistachkin.com>
Date: Mon, 18 Jun 2018 19:09:30 +0000
Subject: [PATCH 0096/1009] Fix typo in the 'normalize' extension.

From https://github.com/mackyle/sqlite/commit/c0506beeac8e92586d1dcdaa0aceeed366c8b62d

---
 ext/misc/normalize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/misc/normalize.c b/ext/misc/normalize.c
index fd656f1..5997ec1 100644
--- a/ext/misc/normalize.c
+++ b/ext/misc/normalize.c
@@ -593,7 +593,7 @@ char *sqlite3_normalize(const char *zSql){
     }
   }
   while( j>0 && z[j-1]==' ' ){ j--; }
-  if( i>0 && z[j-1]!=';' ){ z[j++] = ';'; }
+  if( j>0 && z[j-1]!=';' ){ z[j++] = ';'; }
   z[j] = 0;
 
   /* Make a second pass converting "in(...)" where the "..." is not a
-- 
1.8.3.1

