artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f35186
)
Remove an old and false comment. REALLOC now free(3)s the code if realloc
author
martijn
<martijn@openbsd.org>
Wed, 11 Jul 2018 06:39:23 +0000
(06:39 +0000)
committer
martijn
<martijn@openbsd.org>
Wed, 11 Jul 2018 06:39:23 +0000
(06:39 +0000)
fails.
OK millert@
usr.bin/vi/common/util.c
patch
|
blob
|
history
diff --git
a/usr.bin/vi/common/util.c
b/usr.bin/vi/common/util.c
index
1ed7f6e
..
f71c608
100644
(file)
--- a/
usr.bin/vi/common/util.c
+++ b/
usr.bin/vi/common/util.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: util.c,v 1.1
6 2017/11/10 18:31:36
martijn Exp $ */
+/* $OpenBSD: util.c,v 1.1
7 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);
}