summaryrefslogtreecommitdiff
path: root/usr.bin/mg/autoexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mg/autoexec.c')
-rw-r--r--usr.bin/mg/autoexec.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/mg/autoexec.c b/usr.bin/mg/autoexec.c
index f8db24b4027..4b9969157f0 100644
--- a/usr.bin/mg/autoexec.c
+++ b/usr.bin/mg/autoexec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoexec.c,v 1.4 2004/07/22 01:25:24 vincent Exp $ */
+/* $OpenBSD: autoexec.c,v 1.5 2005/03/10 16:58:57 deraadt Exp $ */
/* this file is in the public domain */
/* Author: Vincent Labrecque <vincent@openbsd.org> April 2002 */
@@ -39,10 +39,6 @@ find_autoexec(const char *fname)
SLIST_FOREACH(ae, &autos, next) {
if (fnmatch(ae->pattern, fname, 0) == 0) {
if (used >= have) {
- /*
- * XXX - realloc(NULL, ...) is not really
- * portable
- */
npfl = realloc(pfl, (have + 8 + 1) * sizeof(PF));
if (npfl == NULL)
panic("out of memory");