summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormartijn <martijn@openbsd.org>2018-07-11 06:39:23 +0000
committermartijn <martijn@openbsd.org>2018-07-11 06:39:23 +0000
commit8b325477e043413d64bdac652b3716840e8f7b90 (patch)
tree577a4bbecf0c5288a2028f3eb3bfa13591018881
parentzap trailing whitespace; (diff)
downloadwireguard-openbsd-8b325477e043413d64bdac652b3716840e8f7b90.tar.xz
wireguard-openbsd-8b325477e043413d64bdac652b3716840e8f7b90.zip
Remove an old and false comment. REALLOC now free(3)s the code if realloc
fails. OK millert@
-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);
}