X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwrite.c;h=86730ff7fec7a1158b6ed8bed305ec784b9375aa;hp=777fa2c01b7089bfb2c76a5213157e1b4a6e8ab4;hb=11b249a3d62d88ca4c5123570f21e754715628e5;hpb=c7af42d3d894338bbd1cb7f4b77948f746485482 diff --git a/src/write.c b/src/write.c index 777fa2c0..86730ff7 100644 --- a/src/write.c +++ b/src/write.c @@ -1867,7 +1867,9 @@ out_ftruncate: if (ret != 0 && !(write_flags & WIMLIB_WRITE_FLAG_NO_LOOKUP_TABLE)) { WARNING("Truncating `%s' to its original size (%"PRIu64" bytes)", w->filename, old_wim_end); - truncate(w->filename, old_wim_end); + /* Return value of truncate() is ignored because this is already + * an error path. */ + (void)truncate(w->filename, old_wim_end); } w->wim_locked = 0; return ret;