提交 b45c0d52 编写于 作者: Z zhaoyanggh

change to const var

上级 4ae1b33b
......@@ -9862,7 +9862,8 @@ static void* syncWriteInterlaceSml(threadInfo *pThreadInfo, uint32_t interlaceRo
batchPerTblTimes = 1;
}
char *smlHead[pThreadInfo->ntables];
char *smlHead = calloc(pThreadInfo->ntables, sizeof(char *));
assert(smlHead);
for (int t = 0; t < pThreadInfo->ntables; t++) {
smlHead[t] = (char *)calloc(HEAD_BUFF_LEN, 1);
if (NULL == smlHead[t]) {
......@@ -10463,7 +10464,8 @@ static void* syncWriteProgressiveSml(threadInfo *pThreadInfo) {
pThreadInfo->samplePos = 0;
char *smlHead[pThreadInfo->ntables];
char *smlHead = calloc(pThreadInfo->ntables, sizeof(char *));
assert(smlHead);
for (int t = 0; t < pThreadInfo->ntables; t++) {
smlHead[t] = (char *)calloc(HEAD_BUFF_LEN, 1);
if (NULL == smlHead[t]) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册