KCompressionDevice: don't call write after WriteError
ClosedPublic

Authored by dfaure on Aug 18 2018, 1:40 PM.

Details

Summary

if an earlier call to write failed, then there is no point in
doing the final write call, it even asserts in the NoneFilter.

Test Plan

This fixes saving to full disk using a KCompressionDevice set
up with KNoneFilter, in kwrite.

BUG: 397545

Diff Detail

Repository
R243 KArchive
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1975
Build 1993: arc lint + arc unit
dfaure created this revision.Aug 18 2018, 1:40 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptAug 18 2018, 1:40 PM
Restricted Application edited subscribers, added: kde-frameworks-devel; removed: Frameworks. · View Herald Transcript
dfaure requested review of this revision.Aug 18 2018, 1:40 PM
cullmann accepted this revision.Aug 18 2018, 1:53 PM

One corner case more fixed.

This revision is now accepted and ready to land.Aug 18 2018, 1:53 PM
dfaure closed this revision.Aug 18 2018, 2:02 PM