mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51: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] Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
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