Patch from Dmitry Zakharov to fix a bug triggered by freeswan's scripts.
diff --git a/editors/awk.c b/editors/awk.c
index c0e1a71..c1cb2a2 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -1554,7 +1554,7 @@
 			memcpy(b+len, s, l);
 			len += l;
 		}
-		b[len] = '\0';
+		if (b) b[len] = '\0';
 		setvar_p(V[F0], b);
 		is_f0_split = TRUE;
 
@@ -2551,6 +2551,7 @@
 
 	if (! exiting) {
 		exiting = TRUE;
+		nextrec = FALSE;
 		evaluate(endseq.first, &tv);
 	}