clang analzyer complains:
> Result of 'calloc' is converted to a pointer of type 'unsigned int', which
> is incompatible with sizeof operand type 'int'
This bug was introduced in f131481a0af79037bc6616edf450ae81d80084d7.
This fix must be backported to all branches containing that commit (2.0, 1.9).
---
src/cfgparse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 1101470be..0e0148159 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -3695,7 +3695,7 @@ out_uri_auth_compat:
goto err;
for (i = 0; i < global.nbthread; i++)
LIST_INIT(&newsrv->idle_orphan_conns[i]);
- newsrv->curr_idle_thr = calloc(global.nbthread,
sizeof(int));
+ newsrv->curr_idle_thr = calloc(global.nbthread,
sizeof(*newsrv->curr_idle_thr));
if (!newsrv->curr_idle_thr)
goto err;
continue;
--
2.21.0