Commit 1ac5b35c authored by Laurent Aimar's avatar Laurent Aimar

Ignore files without their beginning in RAR archive.

parent 136942f3
...@@ -209,6 +209,8 @@ static int SkipFile(stream_t *s, int *count, rar_file_t ***file, ...@@ -209,6 +209,8 @@ static int SkipFile(stream_t *s, int *count, rar_file_t ***file,
current = NULL; current = NULL;
if (!current) { if (!current) {
if (hdr->flags & RAR_BLOCK_FILE_HAS_PREVIOUS)
goto exit;
current = malloc(sizeof(*current)); current = malloc(sizeof(*current));
if (!current) if (!current)
goto exit; goto exit;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment