Browse Source

(panel_operate): remove intermediate variable.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 10 months ago
parent
commit
6f7b4131c6
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/filemanager/file.c

+ 1 - 2
src/filemanager/file.c

@@ -3653,10 +3653,9 @@ panel_operate (void *source_panel, FileOperation operation, gboolean force_singl
     /* Let our parent know we are saying bye bye */
     if (mc_global.we_are_background)
     {
-        int cur_pid = getpid ();
         /* Send pid to parent with child context, it is fork and
            don't modify real parent ctx */
-        ctx->pid = cur_pid;
+        ctx->pid = getpid ();
         parent_call ((void *) end_bg_process, ctx, 0);
 
         vfs_shut ();