(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:
Andrew Borodin 2024-08-10 15:02:45 +03:00
parent a1b4eb0bfb
commit f699e184ea

View File

@ -72,15 +72,12 @@ file_op_context_new (FileOperation op)
ctx = g_new0 (file_op_context_t, 1); ctx = g_new0 (file_op_context_t, 1);
ctx->operation = op; ctx->operation = op;
ctx->eta_secs = 0.0;
ctx->progress_bytes = 0;
ctx->do_reget = -1; ctx->do_reget = -1;
ctx->stat_func = mc_lstat; ctx->stat_func = mc_lstat;
ctx->preserve = TRUE; ctx->preserve = TRUE;
ctx->preserve_uidgid = (geteuid () == 0); ctx->preserve_uidgid = (geteuid () == 0);
ctx->umask_kill = (mode_t) (~0); ctx->umask_kill = (mode_t) (~0);
ctx->erase_at_end = TRUE; ctx->erase_at_end = TRUE;
ctx->ignore_all = FALSE;
return ctx; return ctx;
} }