]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - lookup.c
cscvs to tla changeset 44
[onak.git] / lookup.c
index e4ac9cefaecbe36fdbfbb7ba815d3de916e63940..00bc4165c7a1e59b88af27840aa8d370e85bb503 100644 (file)
--- 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 {
        } else if (search == NULL) {
                puts("Error: No key to search for supplied.");
        } else {
+               readconfig();
                initdb();
                switch (op) {
                case OP_GET:
                initdb();
                switch (op) {
                case OP_GET:
@@ -147,6 +148,7 @@ int main(int argc, char *argv[])
                        puts("Unknown operation!");
                }
                cleanupdb();
                        puts("Unknown operation!");
                }
                cleanupdb();
+               cleanupconfig();
        }
        puts("<hr>");
        puts("Produced by onak " VERSION " by Jonathan McDowell");
        }
        puts("<hr>");
        puts("Produced by onak " VERSION " by Jonathan McDowell");