Commit 85cbefaa0d904482a9a86b26dede9a461284a4dc

Kano 2014-02-14T15:24:36

api.c avoid incorrect gcc warning

1
2
3
4
5
6
7
8
9
10
11
12
13
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;