diff options
author | Mattias Andrée <maandree@kth.se> | 2021-02-26 18:23:22 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-02-26 18:23:22 +0100 |
commit | e4dbd976e9522d5fa17139126edf38d654f45b1d (patch) | |
tree | c094b08baa9f548221f8d72a3942ba4375523e24 /test.c | |
parent | m (diff) | |
download | libsimple-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |