mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(tar_read_header): fix dereference of null pointer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
c9d9a8ba93
commit
e33a48fc95
@ -737,6 +737,8 @@ tar_read_header (struct vfs_class *me, struct vfs_s_super *archive, int tard, si
|
||||
{
|
||||
while (tar_get_next_record (archive, tard)->ext_hdr.isextended != 0)
|
||||
;
|
||||
|
||||
if (inode != NULL)
|
||||
inode->data_offset = current_tar_position;
|
||||
}
|
||||
return STATUS_SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user