Fixes:
source4/libcli/smb_composite/fetchfile.c:91:11: warning: Value stored to 'status' during its initialization is never read <--[clang]
NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
static void fetchfile_state_handler(struct composite_context *c)
{
struct fetchfile_state *state;
- NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
+ NTSTATUS status;
state = talloc_get_type(c->private_data, struct fetchfile_state);
case FETCHFILE_READ:
status = fetchfile_read(c, state->io);
break;
+ default:
+ status = NT_STATUS_UNSUCCESSFUL;
+ break;
}
if (!NT_STATUS_IS_OK(status)) {