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?
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"