From mboxrd@z Thu Jan 1 00:00:00 1970 From: yannick.brosseau@gmail.com (Yannick Brosseau) Date: Tue, 22 Feb 2011 18:30:30 -0500 Subject: [ltt-dev] [UST PATCH] Initialize _res_header variable to zero before use in process_client_cmd Message-ID: <1298417430-30747-1-git-send-email-yannick.brosseau@gmail.com> This use of a non-initialized variable was detected by the valgrind test. Signed-off-by: Yannick Brosseau --- libustconsumer/libustconsumer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libustconsumer/libustconsumer.c b/libustconsumer/libustconsumer.c index 25c84ce..c51b106 100644 --- a/libustconsumer/libustconsumer.c +++ b/libustconsumer/libustconsumer.c @@ -621,7 +621,7 @@ static void process_client_cmd(int sock, struct ustcomm_header *req_header, char *recvbuf, struct ustconsumer_instance *instance) { int result; - struct ustcomm_header _res_header; + struct ustcomm_header _res_header = {0}; struct ustcomm_header *res_header = &_res_header; struct ustcomm_buffer_info *buf_inf; -- 1.7.2.3