commit | d0b9ac3631c854257bdc6215904b13633aab9b32 | [log] [tgz] |
---|---|---|
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Wed May 01 00:10:28 2002 +0000 |
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Wed May 01 00:10:28 2002 +0000 |
tree | 59e207372b3590aaf096dc4c7aab6318ecb3ae3a | |
parent | b3eef6b20212076f866c421d3a8e3025abc7de3f [diff] [blame] |
Weaken assertion on calloc. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@179 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/vg_malloc2.c b/vg_malloc2.c index 8b6c621..98d62bc 100644 --- a/vg_malloc2.c +++ b/vg_malloc2.c
@@ -1178,7 +1178,7 @@ Int i, size; UChar* p; size = nmemb * nbytes; - vg_assert(size > 0); + vg_assert(size >= 0); p = VG_(malloc) ( aid, size ); for (i = 0; i < size; i++) p[i] = 0; return p;