Ticket #4103: mc-4103-cid-tar.c-fix-uninitialized-scalar-variable.patch

File mc-4103-cid-tar.c-fix-uninitialized-scalar-variable.patch, 954 bytes (added by and, 20 months ago)
  • src/vfs/tar/tar.c

    From 1f99fd9dcffdd654fe4cf0d10ab6974e6262e8e2 Mon Sep 17 00:00:00 2001
    From: Andreas Mohr <and@gmx.li>
    Date: Mon, 7 Dec 2020 13:08:05 +0000
    Subject: [PATCH] (tar.c) fix uninitialized scalar variable
    
    Fix uninitialized scalar variable
    
    found by Coverity
    coverity id #32634
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    ---
     src/vfs/tar/tar.c | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/src/vfs/tar/tar.c b/src/vfs/tar/tar.c
    index 913a39520..d7e0130ea 100644
    a b tar_read_header (struct vfs_class *me, struct vfs_s_super *archive, int tard, si 
    708708        size_t len; 
    709709        char *current_file_name, *current_link_name; 
    710710 
     711        memset(&st, 0, sizeof(struct stat)); 
    711712        current_link_name = 
    712713            next_long_link != NULL ? next_long_link : g_strndup (header->header.linkname, 
    713714                                                                 sizeof (header->header.linkname));