mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 04:22:34 +03:00
(file_op_context_new): simplify.
Don't NULLify members. This is already done by call of g_new0(). Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
a1b4eb0bfb
commit
f699e184ea
@ -72,15 +72,12 @@ file_op_context_new (FileOperation op)
|
||||
|
||||
ctx = g_new0 (file_op_context_t, 1);
|
||||
ctx->operation = op;
|
||||
ctx->eta_secs = 0.0;
|
||||
ctx->progress_bytes = 0;
|
||||
ctx->do_reget = -1;
|
||||
ctx->stat_func = mc_lstat;
|
||||
ctx->preserve = TRUE;
|
||||
ctx->preserve_uidgid = (geteuid () == 0);
|
||||
ctx->umask_kill = (mode_t) (~0);
|
||||
ctx->erase_at_end = TRUE;
|
||||
ctx->ignore_all = FALSE;
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user