summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMartijn van Duren <martijn@cvs.openbsd.org>2018-07-11 06:39:24 +0000
committerMartijn van Duren <martijn@cvs.openbsd.org>2018-07-11 06:39:24 +0000
commit2bff9cf63d2d66f91d76a669556174368fce3106 (patch)
treee7e6b57be8a09fdb0ca215fb8aafcd39bb8dff71 /usr.bin
parent3ff771d2a46bfabb65cd3bbab4de6770dca3d7ae (diff)
Remove an old and false comment. REALLOC now free(3)s the code if realloc
fails. OK millert@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/vi/common/util.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/vi/common/util.c b/usr.bin/vi/common/util.c
index 1ed7f6e13d0..f71c6089dcf 100644
--- a/usr.bin/vi/common/util.c
+++ b/usr.bin/vi/common/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.16 2017/11/10 18:31:36 martijn Exp $ */
+/* $OpenBSD: util.c,v 1.17 2018/07/11 06:39:23 martijn Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -45,10 +45,6 @@ binc(SCR *sp, void *bp, size_t *bsizep, size_t min)
REALLOC(sp, bp, csize);
if (bp == NULL) {
- /*
- * Theoretically, realloc is supposed to leave any already
- * held memory alone if it can't get more. Don't trust it.
- */
*bsizep = 0;
return (NULL);
}