From e44ffc323c8a9d4b446baba6e0b131107312fa84 Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Sun, 12 May 2019 17:54:51 +0200
Subject: Fixed a little mistake when loading SQL values.

---
 src/common/sqlite.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/sqlite.c b/src/common/sqlite.c
index af2af9f..d497c81 100644
--- a/src/common/sqlite.c
+++ b/src/common/sqlite.c
@@ -355,14 +355,14 @@ bool load_db_values(sqlite3 *db, const char *table, bound_value *values, size_t
 
             }
 
+            index++;
+
         }
 
         /* Chargement d'un nouvel élément */
 
         cb(values, count, data);
 
-        index++;
-
     }
 
  bind_error:
-- 
cgit v0.11.2-87-g4458