From f699e184ea09cf60ddb27bfe7d6eb8b079457037 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 10 Aug 2024 15:02:45 +0300 Subject: [PATCH] (file_op_context_new): simplify. Don't NULLify members. This is already done by call of g_new0(). Signed-off-by: Andrew Borodin --- src/filemanager/fileopctx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/filemanager/fileopctx.c b/src/filemanager/fileopctx.c index d29d9e9b1..d92466f7b 100644 --- a/src/filemanager/fileopctx.c +++ b/src/filemanager/fileopctx.c @@ -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; }