From f05dfcf88f112339a33aaa668e4793aaf986bf97 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 17 Jun 2015 00:31:20 +0000 Subject: [PATCH] iscsi-scstd: Suppress a compiler warning Avoid that gcc reports the following compiler warning: message.c:197:44: warning: 'rsp_data_sz' may be used uninitialized in this function [-Wmaybe-uninitialized] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6386 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/usr/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/usr/message.c b/iscsi-scst/usr/message.c index 271ef74c4..b68f80904 100644 --- a/iscsi-scst/usr/message.c +++ b/iscsi-scst/usr/message.c @@ -154,7 +154,7 @@ int iscsi_adm_request_handle(int accept_fd) struct iscsi_adm_rsp rsp; struct iovec iov[3]; void *rsp_data = NULL; - size_t rsp_data_sz; + size_t rsp_data_sz = 0; memset(&rsp, 0, sizeof(rsp)); len = sizeof(addr);