about summary refs log tree commit diff
path: root/litterbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'litterbox.c')
-rw-r--r--litterbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/litterbox.c b/litterbox.c
index 178f790..8015cec 100644
--- a/litterbox.c
+++ b/litterbox.c
@@ -410,7 +410,7 @@ int main(int argc, char *argv[]) {
 	int flags = SQLITE_OPEN_READWRITE;
 	if (init) flags |= SQLITE_OPEN_CREATE;
 
-	db = (path ? dbOpen(path, flags) : dbFind(flags));
+	db = dbFind(path, flags);
 	if (!db) errx(EX_NOINPUT, "database not found");
 
 	if (init) {