处理goto导致的编译不通过。
This commit is contained in:
@@ -109,16 +109,16 @@ struct http_field_name * http_field_construct_from_string(const char * str_field
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char * http_field_to_string(const struct http_field_name * field)
|
||||
const char * http_field_name_to_string(const struct http_field_name * field)
|
||||
{
|
||||
if (field->field_id != TFE_HTTP_UNKNOWN_FIELD) return __str_std_header_field_map[field->field_id];
|
||||
return field->field_name;
|
||||
}
|
||||
|
||||
void http_field_destory(struct http_field_name * field)
|
||||
void http_field_name_destory(struct http_field_name * field)
|
||||
{
|
||||
if(field->field_id == TFE_HTTP_UNKNOWN_FIELD) FREE(&field->field_name);
|
||||
free(field);
|
||||
if(field->field_id == TFE_HTTP_UNKNOWN_FIELD) free((void*)field->field_name);
|
||||
FREE(&(field));
|
||||
}
|
||||
|
||||
struct http_frame_session_ctx
|
||||
|
||||
Reference in New Issue
Block a user