summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-15 08:35:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-15 08:35:35 +0000
commitef2e1596a7de92aa7f3b7bf5b82d14ca215b2718 (patch)
tree20db61ed77ec0a8da1e1aaf29cb69b99e78e6d27 /bin
parent4b96b6bff7d5cad383fa7a0d62098f86f30fbc2d (diff)
cull warnings
Diffstat (limited to 'bin')
-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) {