]> git.ipfire.org Git - thirdparty/libarchive.git/commit
mtree reader: return early, remove fallthrough chain 1601/head
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 23 Oct 2021 13:42:55 +0000 (14:42 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 23 Oct 2021 14:01:09 +0000 (15:01 +0100)
commitc53d2786d68f99ba149680b7e9d5ec6d59a87131
tree736dd9f1decca9ce940322a259dfb35c0dc7ebbe
parentdc321febde83dd0f31158e1be61a7aedda65e7a2
mtree reader: return early, remove fallthrough chain

Remove the excessive fallthrough chain in parse_keyword(). Even though
it is in the else/error path, there is no point in comparing the key
another dozen (or more) times when we know it will fail.

Just use an early return (OK) or break respectively.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
libarchive/archive_read_support_format_mtree.c