summaryrefslogtreecommitdiff
path: root/bin/ksh/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ksh/mail.c')
-rw-r--r--bin/ksh/mail.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/ksh/mail.c b/bin/ksh/mail.c
index f4c9361ff6c..bfd6f90cf6f 100644
--- a/bin/ksh/mail.c
+++ b/bin/ksh/mail.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mail.c,v 1.19 2015/09/17 14:21:33 nicm Exp $ */
+/* $OpenBSD: mail.c,v 1.20 2015/10/09 19:36:27 tedu Exp $ */
/*
* Mailbox checking code by Robert J. Gibson, adapted for PD ksh by
@@ -89,10 +89,8 @@ mbset(char *p)
{
struct stat stbuf;
- if (mbox.mb_msg)
- afree(mbox.mb_msg, APERM);
- if (mbox.mb_path)
- afree(mbox.mb_path, APERM);
+ afree(mbox.mb_msg, APERM);
+ afree(mbox.mb_path, APERM);
/* Save a copy to protect from export (which munges the string) */
mbox.mb_path = str_save(p, APERM);
mbox.mb_msg = NULL;