X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/4843efc642ddcfe524bb6ba37b01154e57489ff7..348e7d134e9243fd72cf8fbe366c77c1571faec1:/splitkeys.c?ds=inline diff --git a/splitkeys.c b/splitkeys.c index 6cdf0a0..73a94cd 100644 --- a/splitkeys.c +++ b/splitkeys.c @@ -4,8 +4,6 @@ * Jonathan McDowell * * Copyright 2003 Project Purple - * - * $Id: splitkeys.c,v 1.2 2003/10/03 23:03:02 noodles Exp $ */ #include @@ -42,7 +40,7 @@ int main(int argc, char *argv[]) } } - readconfig(); + readconfig(NULL); initlogthing("splitkeys", config.logfile); do { @@ -58,6 +56,9 @@ int main(int argc, char *argv[]) tmp->next = NULL; } } + if (tmp->next != NULL) { + list_end = NULL; + } snprintf(splitfile, 1023, "splitfile-%d.pgp", count); outfd = open(splitfile, O_WRONLY | O_CREAT, 0664);