aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-26 18:23:22 +0100
committerMattias Andrée <maandree@kth.se>2021-02-26 18:23:22 +0100
commite4dbd976e9522d5fa17139126edf38d654f45b1d (patch)
treec094b08baa9f548221f8d72a3942ba4375523e24 /test.c
parentm (diff)
downloadlibsimple-e4dbd976e9522d5fa17139126edf38d654f45b1d.tar.gz
libsimple-e4dbd976e9522d5fa17139126edf38d654f45b1d.tar.bz2
libsimple-e4dbd976e9522d5fa17139126edf38d654f45b1d.tar.xz
Fix tests and libsimple_arraycpy and libsimple_arraymove1.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'test.c')
-rw-r--r--test.c2
1 files changed, 1 insertions, 1 deletions
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);
}