summaryrefslogtreecommitdiffstats
path: root/tarWrite.c
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2015-06-01 16:55:00 +0200
committerEthan Yonker <dees_troy@teamw.in>2015-06-01 16:55:04 +0200
commit74db84e026208670510b6bbef42a08331b0e8439 (patch)
tree99dfa033cbbe3a4bc7a1ebb91e966d0b119bba28 /tarWrite.c
parentgui: move retainaspect handling to the resource ctors (diff)
downloadandroid_bootable_recovery-74db84e026208670510b6bbef42a08331b0e8439.tar
android_bootable_recovery-74db84e026208670510b6bbef42a08331b0e8439.tar.gz
android_bootable_recovery-74db84e026208670510b6bbef42a08331b0e8439.tar.bz2
android_bootable_recovery-74db84e026208670510b6bbef42a08331b0e8439.tar.lz
android_bootable_recovery-74db84e026208670510b6bbef42a08331b0e8439.tar.xz
android_bootable_recovery-74db84e026208670510b6bbef42a08331b0e8439.tar.zst
android_bootable_recovery-74db84e026208670510b6bbef42a08331b0e8439.zip
Diffstat (limited to '')
-rw-r--r--tarWrite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tarWrite.c b/tarWrite.c
index 9b6e7217a..e3963bbeb 100644
--- a/tarWrite.c
+++ b/tarWrite.c
@@ -88,5 +88,6 @@ ssize_t write_libtar_buffer(int fd, const void *buffer, size_t size) {
void flush_libtar_buffer(int fd) {
eot_count = 0;
- buffer_status = 2;
+ if (buffer_status)
+ buffer_status = 2;
}