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:
Olga Kornievskaia 2011-08-24 17:43:20 -04:00
parent 62c00bff40
commit 969783d46b
11 changed files with 25 additions and 55 deletions

View file

@ -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) {