Unverified Commit b0980dcf by Edward Thomson Committed by GitHub

Update src/allocators/stdalloc.c

Co-authored-by: lhchavez <lhchavez@lhchavez.com>
parent c69852d6
......@@ -35,7 +35,7 @@ static void *stdalloc__calloc(size_t nelem, size_t elsize, const char *file, int
GIT_UNUSED(line);
#ifdef GIT_DEBUG_STRICT_ALLOC
if (!elsize)
if (!elsize || !nelem)
return NULL;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment