From d446e2453fc24b9356ee3711bb49754e1bd64983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Tue, 12 Feb 2013 01:45:54 +0000 Subject: [PATCH] [GB.DB.SQLITE3] * BUG: Fix a crash introduced by the previous fix. git-svn-id: svn://localhost/gambas/trunk@5545 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.db.sqlite3/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gb.db.sqlite3/src/main.cpp b/gb.db.sqlite3/src/main.cpp index 869d04117..9351786d1 100644 --- a/gb.db.sqlite3/src/main.cpp +++ b/gb.db.sqlite3/src/main.cpp @@ -334,7 +334,8 @@ static int do_query(DB_DATABASE *db, const char *error, Dataset **pres, const ch if (success) { - *pres = res; + if (pres) + *pres = res; break; }