[gcompris] minor, compilation warning fix.



commit 312e9cc8e105f29427277f4d84be4ba7295c2baf
Author: Bruno Coudoin <bcoudoin gcompris net>
Date:   Tue Aug 13 22:23:54 2013 +0200

    minor, compilation warning fix.

 src/gcompris/gcompris_db.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gcompris/gcompris_db.c b/src/gcompris/gcompris_db.c
index 84c6a08..bc91cf8 100644
--- a/src/gcompris/gcompris_db.c
+++ b/src/gcompris/gcompris_db.c
@@ -2223,6 +2223,11 @@ int get_last_played_level(int user_id, int board_id)
                         &ncolumn,
                         &zErrMsg
                         );
+  if( rc!=SQLITE_OK )
+    {
+      g_message("SQL error: %s\n", zErrMsg);
+      return -1;
+    }
 
   if(nrow == 0)
   {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]