[Groonga-commit] groonga/groonga at 08e911c [master] Initialize members explicitly

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Mar 22 19:44:17 JST 2016


Kouhei Sutou	2016-03-22 19:44:17 +0900 (Tue, 22 Mar 2016)

  New Revision: 08e911c7f5e57feba129ac8d206ab81d90817f7e
  https://github.com/groonga/groonga/commit/08e911c7f5e57feba129ac8d206ab81d90817f7e

  Message:
    Initialize members explicitly

  Modified files:
    lib/com.c

  Modified: lib/com.c (+4 -0)
===================================================================
--- lib/com.c    2016-03-22 19:53:26 +0900 (ff14f60)
+++ lib/com.c    2016-03-22 19:44:17 +0900 (460c54f)
@@ -277,6 +277,10 @@ grn_com_event_init(grn_ctx *ctx, grn_com_event *ev, int max_nevents, int data_si
     MUTEX_INIT(ev->mutex);
     COND_INIT(ev->cond);
     GRN_COM_QUEUE_INIT(&ev->recv_old);
+    ev->msg_handler = NULL;
+    memset(&(ev->curr_edge_id), 0, sizeof(grn_com_addr));
+    ev->acceptor = NULL;
+    ev->opaque = NULL;
 #ifndef USE_SELECT
 # ifdef USE_EPOLL
     if ((ev->events = GRN_MALLOC(sizeof(struct epoll_event) * max_nevents))) {
-------------- next part --------------
HTML����������������������������...
Descargar 



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