diff options
author | June McEnroe <june@causal.agency> | 2019-12-23 21:53:24 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-12-23 21:53:24 -0500 |
commit | 7fd758a4a9b99d79a4c490257f16b2fce506b21c (patch) | |
tree | e79c8d658771001e6d81c1283a0874287575d179 /litterbox.c | |
parent | Factour out verbose, dbStep+reset (diff) | |
download | litterbox-7fd758a4a9b99d79a4c490257f16b2fce506b21c.tar.gz litterbox-7fd758a4a9b99d79a4c490257f16b2fce506b21c.zip |
Take optional explicit path in dbFind
Diffstat (limited to '')
-rw-r--r-- | litterbox.c | 2 |
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) { |