diff options
author | Sebastian Freundt <freundt@ga-group.nl> | 2014-06-10 11:15:42 +0000 |
---|---|---|
committer | Sebastian Freundt <freundt@ga-group.nl> | 2014-06-10 11:15:42 +0000 |
commit | b3cc3bcd93d7aa9724c38a7c8307a1376ad1f98c (patch) | |
tree | 9644232dc307308553e4a5f63693b8bf02a36df1 /libarchive/archive_read_support_format_warc.c | |
parent | 6e70844f13ed939bab77f3cd903440bcfe9adbec (diff) | |
download | libarchive-b3cc3bcd93d7aa9724c38a7c8307a1376ad1f98c.tar.gz |
Hygiene, trust __archive_read_ahead() and kick superfluous check.
Heeding Tim's advice, a non-NULL from __archive_read_ahead() is
guaranteed to be of at least the minimum size, therefore no need to
check for this condition again.
Diffstat (limited to 'libarchive/archive_read_support_format_warc.c')
-rw-r--r-- | libarchive/archive_read_support_format_warc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_support_format_warc.c b/libarchive/archive_read_support_format_warc.c index ebdf1a2b..82ed3cc0 100644 --- a/libarchive/archive_read_support_format_warc.c +++ b/libarchive/archive_read_support_format_warc.c @@ -216,7 +216,7 @@ start_over: &a->archive, ARCHIVE_ERRNO_MISC, "Bad record header"); return (ARCHIVE_FATAL); - } else if (nrd < 12 || buf == NULL) { + } else if (buf == NULL) { /* there should be room for at least WARC/bla\r\n * must be EOF therefore */ return (ARCHIVE_EOF); |