summary refs log tree commit diff
path: root/litterbox.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-12-23 21:53:24 -0500
committerJune McEnroe <june@causal.agency>2019-12-23 21:53:24 -0500
commit7fd758a4a9b99d79a4c490257f16b2fce506b21c (patch)
treee79c8d658771001e6d81c1283a0874287575d179 /litterbox.c
parentFactour out verbose, dbStep+reset (diff)
downloadlitterbox-7fd758a4a9b99d79a4c490257f16b2fce506b21c.tar.gz
litterbox-7fd758a4a9b99d79a4c490257f16b2fce506b21c.zip
Take optional explicit path in dbFind
Diffstat (limited to '')
-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) {