nedmalloc: avoid new compile error
commit98cdb61cab6cff3df9fc6b48b99df61965a1588c
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 24 May 2022 00:23:04 +0000 (24 00:23 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 May 2022 22:58:31 +0000 (24 15:58 -0700)
treeb487e7ffb7241177cb1ecc7d00bbdcb2dbf99baf
parenta6a243e94a1206964e25c14eeafb7d10b8d8cb5d
nedmalloc: avoid new compile error

GCC v12.x complains thusly:

compat/nedmalloc/nedmalloc.c: In function 'DestroyCaches':
compat/nedmalloc/nedmalloc.c:326:12: error: the comparison will always
                              evaluate as 'true' for the address of 'caches'
                              will never be NULL [-Werror=address]
  326 |         if(p->caches)
      |            ^
compat/nedmalloc/nedmalloc.c:196:22: note: 'caches' declared here
  196 |         threadcache *caches[THREADCACHEMAXCACHES];
      |                      ^~~~~~

... and it is correct, of course.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/nedmalloc/nedmalloc.c