sc/inc/dragdata.hxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit fc66855f1aa9fa7bcf28b417adf861e940200d89
Author: Michael Meeks <[email protected]>
AuthorDate: Thu Jan 20 15:02:11 2022 +0000
Commit: Michael Meeks <[email protected]>
CommitDate: Thu Jan 20 20:19:09 2022 +0100
sc: ubsan - initialize D&D pointers properly.
Change-Id: I95c6a9b55ed25cc6d51f9f4544cb9fc016bbec64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128672
Tested-by: Jenkins
Reviewed-by: Michael Meeks <[email protected]>
diff --git a/sc/inc/dragdata.hxx b/sc/inc/dragdata.hxx
index 1e076178c849..f8cab8592ea5 100644
--- a/sc/inc/dragdata.hxx
+++ b/sc/inc/dragdata.hxx
@@ -26,6 +26,13 @@ struct ScDragData
OUString aLinkArea;
OUString aJumpTarget;
OUString aJumpText;
+
+ ScDragData() :
+ pCellTransfer(nullptr),
+ pDrawTransfer(nullptr),
+ pJumpLocalDoc(nullptr)
+ {
+ }
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */