From: Jonathan McDowell Date: Mon, 31 May 2004 23:48:03 +0000 (+0000) Subject: cscvs to tla changeset 106 X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/98ee16938c903e9d1d5bb9b720f9cfef1fa2ec0a?ds=sidebyside cscvs to tla changeset 106 Author: noodles Date: 2003/10/03 23:34:06 Fix crash after outputting last set of split keys. --- diff --git a/splitkeys.c b/splitkeys.c index 6cdf0a0..4f63655 100644 --- a/splitkeys.c +++ b/splitkeys.c @@ -5,7 +5,7 @@ * * Copyright 2003 Project Purple * - * $Id: splitkeys.c,v 1.2 2003/10/03 23:03:02 noodles Exp $ + * $Id: splitkeys.c,v 1.3 2003/10/03 23:34:06 noodles Exp $ */ #include @@ -58,6 +58,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);