diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-01 08:33:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-01 10:50:11 +0200 |
commit | e6981b99ac5447f917287f5102a0a18b4972871e (patch) | |
tree | b5404b8b2447aeca8caab03f3606f2b066eba490 /i18npool | |
parent | 358b281a39c6599aa2054a9cf60aa6712e832150 (diff) |
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: Ic2c2e227a50994298377485e9e807cd9142cc386
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166949
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/indexentry/indexentrysupplier_default.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier_default.cxx b/i18npool/source/indexentry/indexentrysupplier_default.cxx index 898214f8b1ae..f65ee2843857 100644 --- a/i18npool/source/indexentry/indexentrysupplier_default.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_default.cxx @@ -96,6 +96,7 @@ void IndexTable::init(sal_Unicode start_, sal_Unicode end_, IndexKey const *keys start=start_; end=end_; table = static_cast<sal_uInt8*>(malloc((end-start+1)*sizeof(sal_uInt8))); + assert(table && "Don't handle OOM conditions"); for (sal_Unicode i = start; i <= end; i++) { sal_Int16 j; for (j = 0; j < key_count; j++) { |