garten

diff db.c @ 16:3c104b5f5158

fixed small bug
author meillo@marmaro.de
date Wed, 23 Jul 2008 16:49:10 +0200
parents 082566ce7d10
children 5e6c9260913a
line diff
     1.1 --- a/db.c	Wed Jul 23 16:45:56 2008 +0200
     1.2 +++ b/db.c	Wed Jul 23 16:49:10 2008 +0200
     1.3 @@ -47,7 +47,7 @@
     1.4  
     1.5  int read_time() {
     1.6  	sprintf(query, "select time from game;");
     1.7 -	db_query(query);
     1.8 +	stmt = db_query(query);
     1.9  	if (sqlite3_step(stmt) != SQLITE_ROW) {
    1.10  		printf("error: %s\n", sqlite3_errmsg(db));
    1.11  		exit(1);