summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--registry/source/reflwrit.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx
index 04be2db6e702..8f8e83318433 100644
--- a/registry/source/reflwrit.cxx
+++ b/registry/source/reflwrit.cxx
@@ -1207,6 +1207,7 @@ void const * TYPEREG_CALLTYPE typereg_writer_getBlob(void * handle, sal_uInt32 *
try {
writer->createBlop();
} catch (std::bad_alloc &) {
+ *size = 0;
return nullptr;
}
}