mirror of
https://gitee.com/openharmony/global_i18n
synced 2024-11-26 16:51:24 +00:00
update interfaces/cj/intl/src/intl_impl.cpp.
Signed-off-by: 小城茶语 <guorunzhi@huawei.com>
This commit is contained in:
parent
7b64eb5e21
commit
b1f587cc96
@ -257,7 +257,7 @@ CArrArrString RelativeTimeFormatImpl::FormatToParts(double number, char *unit)
|
||||
|
||||
CArrArrString ret = {.head = nullptr, .size = 0};
|
||||
relativeTimeFmt_->FormatToParts(number, unitStr, timeVectorStr);
|
||||
CArrString *res = static_cast<CArrString *>(malloc(sizeof(char ***) * timeVectorStr.size()));
|
||||
CArrString *res = static_cast<CArrString *>(malloc(sizeof(CArrString) * timeVectorStr.size()));
|
||||
if (res == nullptr) {
|
||||
HILOG_ERROR_I18N("The CArrString is nullptr");
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user