[gcompris] minor, compilation warning fix.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris] minor, compilation warning fix.
- Date: Tue, 13 Aug 2013 20:28:01 +0000 (UTC)
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]