From 8b325477e043413d64bdac652b3716840e8f7b90 Mon Sep 17 00:00:00 2001 From: martijn Date: Wed, 11 Jul 2018 06:39:23 +0000 Subject: [PATCH] Remove an old and false comment. REALLOC now free(3)s the code if realloc fails. OK millert@ --- usr.bin/vi/common/util.c | 6 +----- 1 file changed, 1 insertion(+), 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); } -- 2.20.1