Fix Uninitialized argument value found by Clang Analyzer

(Need to be confirmed)
---
 src/ac/ac_dfa_join.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
This commit is contained in:
Alexis La Goutte 2015-01-22 10:19:38 +01:00
parent 4d1b60a6c1
commit 63189997df
1 changed files with 2 additions and 2 deletions

View File

@ -456,7 +456,7 @@ static uint32_t ac_dfa_state_join_create_response(struct ac_session_t* session,
responseacipv4list->addresses = capwap_array_create(sizeof(struct in_addr), 0, 0);
for (j = 0; j < length; j++) {
struct json_object* jsonvalue = json_object_array_get_idx(jsonelement, i);
struct json_object* jsonvalue = json_object_array_get_idx(jsonelement, j);
if (jsonvalue && (json_object_get_type(jsonvalue) == json_type_object)) {
struct json_object* jsonitem;
@ -507,7 +507,7 @@ static uint32_t ac_dfa_state_join_create_response(struct ac_session_t* session,
responseacipv6list->addresses = capwap_array_create(sizeof(struct in6_addr), 0, 0);
for (j = 0; j < length; j++) {
struct json_object* jsonvalue = json_object_array_get_idx(jsonelement, i);
struct json_object* jsonvalue = json_object_array_get_idx(jsonelement, j);
if (jsonvalue && (json_object_get_type(jsonvalue) == json_type_object)) {
struct json_object* jsonitem;