From: Kaj-Michael Lang Date: Thu, 13 Mar 2008 12:06:09 +0000 (+0200) Subject: Fix variable usage X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8983d324e5ee822879a01591c2f66526b377face;p=mapper Fix variable usage --- diff --git a/src/db.c b/src/db.c index cf19118..6fe268c 100644 --- a/src/db.c +++ b/src/db.c @@ -161,7 +161,7 @@ if (!mapper_db) return FALSE; if (SQLITE_OK!=(sqlite3_open(mapper_db, db))) { - g_printerr("SQL OPEN: %s\n", sqlite3_errmsg(db)); + g_printerr("SQL OPEN: %s\n", sqlite3_errmsg(*db)); sqlite3_close(*db); *db=NULL; return FALSE;