X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/200b89a2c66c58c41a27883f021850445698b337..5913c95f2c7abf4c3cb06e27d384d80fb4c83547:/lookup.c?ds=inline diff --git a/lookup.c b/lookup.c index e4ac9ce..00bc416 100644 --- a/lookup.c +++ b/lookup.c @@ -119,6 +119,7 @@ int main(int argc, char *argv[]) } else if (search == NULL) { puts("Error: No key to search for supplied."); } else { + readconfig(); initdb(); switch (op) { case OP_GET: @@ -147,6 +148,7 @@ int main(int argc, char *argv[]) puts("Unknown operation!"); } cleanupdb(); + cleanupconfig(); } puts("
"); puts("Produced by onak " VERSION " by Jonathan McDowell");