Ticket #3955: mc-3955-panel.c-cleanup-cppcheck-warning.patch

File mc-3955-panel.c-cleanup-cppcheck-warning.patch, 908 bytes (added by and, 4 months ago)
  • src/filemanager/panel.c

    From 2304916204245af6616f37a9734d02cb1038f8b7 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Tue, 8 Jan 2019 06:47:59 +0000
    Subject: [PATCH] panel.c: Cleanup cppcheck style warning
    
    Found by cppcheck 1.81
    
    [src/filemanager/panel.c:4361]: (style) Variable 'err' is assigned a value that is never used.
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/filemanager/panel.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c
    index 1662d9e3a..5d8a52ebe 100644
    a b panel_new_with_dir (const char *panel_name, const vfs_path_t * vpath) 
    43584358        vfs_path_t *tmp_vpath; 
    43594359 
    43604360        tmp_vpath = vfs_path_from_str (curdir); 
    4361         err = mc_chdir (tmp_vpath); 
     4361        mc_chdir (tmp_vpath); 
    43624362        vfs_path_free (tmp_vpath); 
    43634363    } 
    43644364    g_free (curdir);