summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/ksh/history.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c
index d7432d7d77d..2571f70b6ce 100644
--- a/bin/ksh/history.c
+++ b/bin/ksh/history.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: history.c,v 1.18 2003/04/06 23:39:17 deraadt Exp $ */
+/* $OpenBSD: history.c,v 1.19 2003/04/15 08:35:34 deraadt Exp $ */
/*
* command history
@@ -1018,8 +1018,8 @@ histload(s, base, bytes)
register int bytes;
{
State state;
- int lno;
- unsigned char *line;
+ int lno = 0;
+ unsigned char *line = NULL;
for (state = shdr; bytes-- > 0; base++) {
switch (state) {