summaryrefslogtreecommitdiff
path: root/bin/ksh/history.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-10-21 15:20:38 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-10-21 15:20:38 +0000
commite141a894d35ae6b0f58275e62b25651928603022 (patch)
treea7cdf551466a533d5c198be7d67ada4b54263714 /bin/ksh/history.c
parentc41dc2462cde9ae6b9892de36e7513a978682596 (diff)
Don't bother casting NULL.
ok nicm@
Diffstat (limited to 'bin/ksh/history.c')
-rw-r--r--bin/ksh/history.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/history.c b/bin/ksh/history.c
index 74aae960910..34f3075077b 100644
--- a/bin/ksh/history.c
+++ b/bin/ksh/history.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: history.c,v 1.49 2015/10/19 14:42:16 mmcc Exp $ */
+/* $OpenBSD: history.c,v 1.50 2015/10/21 15:20:37 mmcc Exp $ */
/*
* command history
@@ -554,7 +554,7 @@ sethistfile(const char *name)
void
init_histvec(void)
{
- if (history == (char **)NULL) {
+ if (history == NULL) {
histsize = HISTORYSIZE;
history = alloc(histsize*sizeof (char *), APERM);
histptr = history - 1;