X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/200b89a2c66c58c41a27883f021850445698b337..87fbdd69b1885c6588ec924e37b734f2c3c5ed35:/lookup.c 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");