summary refs log tree commit diff
path: root/unscoop.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--unscoop.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/unscoop.c b/unscoop.c
index 996b929..0b15430 100644
--- a/unscoop.c
+++ b/unscoop.c
@@ -317,10 +317,8 @@ int main(int argc, char *argv[]) {
 		}
 	}
 
-	int flags = SQLITE_OPEN_READWRITE;
-	sqlite3 *db = (path ? dbOpen(path, flags) : dbFind(flags));
+	sqlite3 *db = dbFind(path, SQLITE_OPEN_READWRITE);
 	if (!db) errx(EX_NOINPUT, "database not found");
-
 	if (dbVersion(db) != DatabaseVersion) {
 		errx(EX_CONFIG, "database out of date; migrate with litterbox -m");
 	}