]> err.no Git - mapper/commitdiff
Fix variable usage
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 13 Mar 2008 12:06:09 +0000 (14:06 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 13 Mar 2008 12:06:09 +0000 (14:06 +0200)
src/db.c

index cf19118e9f3e1833aeaa1794725e9f31d630782c..6fe268ca1242d017f127b8be073adcf577141924 100644 (file)
--- 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;