From 51fe0dd5a059c70c58b2e330c3906d05b3e39aac Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Wed, 4 Apr 2018 16:36:16 +0000 Subject: [PATCH] Add missing check of a tar writing function --- include/storage/tar.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/storage/tar.hpp b/include/storage/tar.hpp index 548050e3b..a5e232cda 100644 --- a/include/storage/tar.hpp +++ b/include/storage/tar.hpp @@ -279,7 +279,8 @@ class FileWriter // update header to reflect increased tar size auto old_size = header.size; header.size += number_of_bytes; - mtar_write_header(&handle, &header); + ret = mtar_write_header(&handle, &header); + detail::checkMTarError(ret, path, name); // now seek to the end of the old record handle.remaining_data = number_of_bytes;