[Groonga-commit] groonga/groonga [master] groonga-httpd: add missing NULL initialization

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Sep 3 18:49:05 JST 2012


Kouhei Sutou	2012-09-03 18:49:05 +0900 (Mon, 03 Sep 2012)

  New Revision: 33dc64b74318850d10b37086e02404882066e9df
  https://github.com/groonga/groonga/commit/33dc64b74318850d10b37086e02404882066e9df

  Log:
    groonga-httpd: add missing NULL initialization
    
    Reported by @Kiske. Thanks!!!

  Modified files:
    src/nginx-module/ngx_http_groonga_module.c

  Modified: src/nginx-module/ngx_http_groonga_module.c (+1 -1)
===================================================================
--- src/nginx-module/ngx_http_groonga_module.c    2012-09-03 16:03:16 +0900 (ff51d28)
+++ src/nginx-module/ngx_http_groonga_module.c    2012-09-03 18:49:05 +0900 (70fa007)
@@ -266,6 +266,7 @@ ngx_http_groonga_attach_chain(ngx_chain_t *chain, ngx_chain_t *new_chain)
   }
 
   new_chain->buf->last_buf = 1;
+  new_chain->next = NULL;
   if (!chain) {
     return new_chain;
   }
@@ -276,7 +277,6 @@ ngx_http_groonga_attach_chain(ngx_chain_t *chain, ngx_chain_t *new_chain)
     last_chain = last_chain->next;
   }
   last_chain->next = new_chain;
-  new_chain->next = NULL;
   return chain;
 }
 
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index