null+****@clear*****
null+****@clear*****
2012年 6月 22日 (金) 17:36:45 JST
Ryo Onodera 2012-06-22 17:36:45 +0900 (Fri, 22 Jun 2012) New Revision: e324727444cb81fb094832fcf29f485bb50fdeb3 https://github.com/groonga/groonga/commit/e324727444cb81fb094832fcf29f485bb50fdeb3 Log: httpd: move output member initialization to outer scope Modified files: src/nginx-module/ngx_http_groonga_module.c Modified: src/nginx-module/ngx_http_groonga_module.c (+4 -4) =================================================================== --- src/nginx-module/ngx_http_groonga_module.c 2012-06-22 17:36:23 +0900 (1472162) +++ src/nginx-module/ngx_http_groonga_module.c 2012-06-22 17:36:45 +0900 (449af22) @@ -134,13 +134,13 @@ ngx_http_groonga_context_receive_handler(grn_ctx *context, ngx_http_groonga_output_t *output = (ngx_http_groonga_output_t *)callback_data; + GRN_TEXT_INIT(&output->head, GRN_NO_FLAGS); + GRN_TEXT_INIT(&output->body, GRN_NO_FLAGS); + GRN_TEXT_INIT(&output->foot, GRN_NO_FLAGS); + grn_ctx_recv(context, &result, &result_size, &flags); if (result_size || context->rc) { - GRN_TEXT_INIT(&output->head, GRN_NO_FLAGS); - GRN_TEXT_INIT(&output->body, GRN_NO_FLAGS); - GRN_TEXT_INIT(&output->foot, GRN_NO_FLAGS); - GRN_TEXT_SET(context, &output->body, result, -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B... Download