mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-10 12:24:25 +03:00
(tar_open_archive): initialize variable.
../../../../src/vfs/tar/tar.c: In function 'tar_open_archive': ../../../../src/vfs/tar/tar.c:805:69: error: 'h_size' may be used uninitialized in this function [-Werror=uninitialized] Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
b5012c8e9d
commit
e185cb1e8c
@ -792,7 +792,7 @@ tar_open_archive (struct vfs_s_super *archive, const vfs_path_t * vpath,
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
size_t h_size;
|
||||
size_t h_size = 0;
|
||||
ReadStatus prev_status = status;
|
||||
|
||||
status = tar_read_header (vpath_element->class, archive, tard, &h_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user