提交 51798547 authored 作者: Chris Rienzo's avatar Chris Rienzo 提交者: Andrey Volk

FS-11785 [mod_expr] fix scan-build false positives

上级 3870c0fc
......@@ -1266,7 +1266,7 @@ int exprInternalParseFunction(exprObj * obj, exprNode * node, exprToken * tokens
}
/* Set reference item */
reftmp[refcur] = addr;
if (reftmp) reftmp[refcur] = addr; // the 'if' shuts up scan-build
/* increase ref arg number and lv position */
refcur++;
......@@ -1330,7 +1330,7 @@ int exprInternalParseFunction(exprObj * obj, exprNode * node, exprToken * tokens
}
/* Set reference item */
reftmp[refcur] = addr;
if (reftmp) reftmp[refcur] = addr; // the 'if' shuts up scan-build
} else {
err = exprInternalParse(obj, &(tmp[cur]), tokens, lv, p2 - 1);
if (err != EXPR_ERROR_NOERROR)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论