svn commit: r190955 - head/lib/libarchive
Christoph Mallon
christoph.mallon at gmx.de
Sun Apr 12 05:25:44 UTC 2009
Tim Kientzle schrieb:
> Author: kientzle
> Date: Sun Apr 12 04:45:40 2009
> New Revision: 190955
> URL: http://svn.freebsd.org/changeset/base/190955
>
> Log:
> Merge r881 from libarchive.googlecode.com: The "empty" format
> should not be recognized if there is a read error.
>
> Modified:
> head/lib/libarchive/archive_read_support_format_empty.c
>
> Modified: head/lib/libarchive/archive_read_support_format_empty.c
> ==============================================================================
> --- head/lib/libarchive/archive_read_support_format_empty.c Sun Apr 12 03:45:03 2009 (r190954)
> +++ head/lib/libarchive/archive_read_support_format_empty.c Sun Apr 12 04:45:40 2009 (r190955)
> @@ -60,9 +60,10 @@ static int
> archive_read_format_empty_bid(struct archive_read *a)
> {
> const void *h;
> + ssize_t avail;
>
> - h = __archive_read_ahead(a, 1, NULL);
> - if (h != NULL)
> + h = __archive_read_ahead(a, 1, &avail);
> + if (avail != 0)
> return (-1);
> return (1);
> }
"h" now is write-only - is this intended or should the variable be removed?
More information about the svn-src-head
mailing list