fix code analysis vs2010 pre sp1

This commit is contained in:
Jeff Lenk 2011-05-26 09:05:12 -05:00
parent fc004ddc13
commit 140810df78
1 changed files with 1 additions and 1 deletions

View File

@ -770,7 +770,7 @@ ESL_DECLARE(esl_status_t) esl_event_create_json(esl_event_t **event, const char
for (i = 0; i < x; i++) {
cJSON *item = cJSON_GetArrayItem(cjp, i);
if (item && item->type == cJSON_String && item->valuestring) {
if (item != NULL && item->type == cJSON_String && item->valuestring) {
esl_event_add_header_string(new_event, ESL_STACK_PUSH, name, item->valuestring);
}
}