mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 02:31:27 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user