diff options
Diffstat (limited to 'courgette')
-rw-r--r-- | courgette/ensemble_create.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/courgette/ensemble_create.cc b/courgette/ensemble_create.cc index 4e285e4..ec33689 100644 --- a/courgette/ensemble_create.cc +++ b/courgette/ensemble_create.cc @@ -361,7 +361,8 @@ Status GenerateEnsemblePatch(SourceStream* base, // SinkStream predicted_ensemble; - predicted_ensemble.Write(base->Buffer(), base->Remaining()); + if (!predicted_ensemble.Write(base->Buffer(), base->Remaining())) + return C_STREAM_ERROR; SourceStreamSet corrected_transformed_elements_source_set; corrected_transformed_elements_source |