diff --git a/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c b/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c index d7b9d708d5..dcfa3ec67e 100644 --- a/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c +++ b/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c @@ -579,11 +579,10 @@ abyss_bool websocket_hook(TSession *r) char *proto = NULL; char *upgrade = NULL; - for (i = 0; i < r->requestHeaderFields.size; ++i) { - TTableItem * const fieldP = &r->requestHeaderFields.item[i]; - const char * const fieldValue = fieldP->value; + for (i = 0; i < r->requestHeaderFields.size; i++) { + TTableItem * const item = &r->requestHeaderFields.item[i]; - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "headers %s: %s\n", fieldP->name, fieldValue); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "headers %s: %s\n", item->name, item->value); } key = TableFind(&r->requestHeaderFields, "sec-websocket-key");