From e4dbd976e9522d5fa17139126edf38d654f45b1d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 26 Feb 2021 18:23:22 +0100 Subject: Fix tests and libsimple_arraycpy and libsimple_arraymove MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test.c') diff --git a/test.c b/test.c index 5297987..e5ecf00 100644 --- a/test.c +++ b/test.c @@ -287,7 +287,7 @@ memset(void *s, int c, size_t n) { char *str = s; struct allocinfo *info; - if (just_alloced && s == just_alloced) { + if (s == just_alloced && just_alloced && !c) { info = get_allocinfo(s); info->zeroed = MAX(info->zeroed, n); } -- cgit v1.2.3-70-g09d2