removing unnecessary ZeroMemory calls
instead of calling ZeroMemory(foobar) to initialize the data structure,
during declaration do struct some_struct foobar = { 0 }
This commit is contained in:
parent
62c00bff40
commit
969783d46b
11 changed files with 25 additions and 55 deletions
|
|
@ -82,9 +82,7 @@ static int handle_getattr(nfs41_upcall *upcall)
|
|||
int status;
|
||||
getattr_upcall_args *args = &upcall->args.getattr;
|
||||
nfs41_open_state *state = upcall->state_ref;
|
||||
nfs41_file_info info;
|
||||
|
||||
ZeroMemory(&info, sizeof(info));
|
||||
nfs41_file_info info = { 0 };
|
||||
|
||||
status = nfs41_cached_getattr(state->session, &state->file, &info);
|
||||
if (status) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue