diff options
author | Ken Matsui <26405363+ken-matsui@users.noreply.github.com> | 2022-03-05 12:12:09 +0900 |
---|---|---|
committer | Ken Matsui <26405363+ken-matsui@users.noreply.github.com> | 2022-03-05 13:43:51 +0900 |
commit | a4c3c90bb828ab5f01589718266ac5d3fdccb854 (patch) | |
tree | 1ef714c264717cc4f94fdb9879a6899e58d69ef6 | |
parent | 12b8cc5611c5c55d58c121ca19f97b48915c32d2 (diff) | |
download | libarchive-a4c3c90bb828ab5f01589718266ac5d3fdccb854.tar.gz |
Remove the unused variable `detected_bytes`
-rw-r--r-- | libarchive/archive_read_support_format_mtree.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libarchive/archive_read_support_format_mtree.c b/libarchive/archive_read_support_format_mtree.c index 88bca76f..4a281632 100644 --- a/libarchive/archive_read_support_format_mtree.c +++ b/libarchive/archive_read_support_format_mtree.c @@ -692,7 +692,7 @@ detect_form(struct archive_read *a, int *is_form_d) { const char *p; ssize_t avail, ravail; - ssize_t detected_bytes = 0, len, nl; + ssize_t len, nl; int entry_cnt = 0, multiline = 0; int form_D = 0;/* The archive is generated by `NetBSD mtree -D' * (In this source we call it `form D') . */ @@ -728,8 +728,6 @@ detect_form(struct archive_read *a, int *is_form_d) * character of previous line was '\' character. */ if (bid_keyword_list(p, len, 0, 0) <= 0) break; - if (multiline == 1) - detected_bytes += len; if (p[len-nl-1] != '\\') { if (multiline == 1 && ++entry_cnt >= MAX_BID_ENTRY) @@ -745,7 +743,6 @@ detect_form(struct archive_read *a, int *is_form_d) keywords = bid_entry(p, len, nl, &last_is_path); if (keywords >= 0) { - detected_bytes += len; if (form_D == 0) { if (last_is_path) form_D = 1; |