Ticket #4270: mc-4270-filegui-fix-cid-331828-331850.patch

File mc-4270-filegui-fix-cid-331828-331850.patch, 916 bytes (added by and, 6 months ago)
  • src/filemanager/filegui.c

    From f520f62609fa0a557e68c5cbeaaa04a25a21d140 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Thu, 17 Feb 2022 18:16:32 +0000
    Subject: [PATCH] (fileguid.c) fix coverity finding #331828 #331850
    
    Found by Coverity.
    Coverity id #331828
    Coverity id #331850
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/filemanager/filegui.c | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/src/filemanager/filegui.c b/src/filemanager/filegui.c
    index c74177d59..9c91889f2 100644
    a b file_mask_dialog (file_op_context_t * ctx, FileOperation operation, gboolean onl 
    14111411            message (D_ERROR, MSG_ERROR, _("Invalid source pattern '%s'"), source_mask); 
    14121412            g_free (dest_dir); 
    14131413            g_free (source_mask); 
     1414            dest_dir = NULL; 
     1415            source_mask = NULL; 
    14141416            goto ask_file_mask; 
    14151417        } 
    14161418