api.c avoid incorrect gcc warning
diff --git a/api.c b/api.c
index 692d0b3..4e0247b 100644
--- a/api.c
+++ b/api.c
@@ -4479,7 +4479,7 @@ void api(int api_thr_id)
json_t *json_config = NULL;
json_t *json_val;
bool isjson;
- bool did, isjoin, firstjoin;
+ bool did, isjoin = false, firstjoin;
int i;
SOCKETTYPE *apisock;