]> the.earth.li Git - onak.git/commitdiff
cscvs to tla changeset 106
authorJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:48:03 +0000 (23:48 +0000)
committerJonathan McDowell <noodles@earth.li>
Mon, 31 May 2004 23:48:03 +0000 (23:48 +0000)
Author: noodles
Date: 2003/10/03 23:34:06
Fix crash after outputting last set of split keys.

splitkeys.c

index 6cdf0a0abb1feb418400e5914cd0d014964833b6..4f6365596a2c3c1a692f3155adf5c61c5261f0da 100644 (file)
@@ -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 <fcntl.h>
@@ -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);