mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-22 20:04:52 +00:00
FS-11785 [mod_expr] fix scan-build false positives
This commit is contained in:
parent
3870c0fc2a
commit
517985473a
@ -1266,7 +1266,7 @@ int exprInternalParseFunction(exprObj * obj, exprNode * node, exprToken * tokens
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Set reference item */
|
/* Set reference item */
|
||||||
reftmp[refcur] = addr;
|
if (reftmp) reftmp[refcur] = addr; // the 'if' shuts up scan-build
|
||||||
|
|
||||||
/* increase ref arg number and lv position */
|
/* increase ref arg number and lv position */
|
||||||
refcur++;
|
refcur++;
|
||||||
@ -1330,7 +1330,7 @@ int exprInternalParseFunction(exprObj * obj, exprNode * node, exprToken * tokens
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Set reference item */
|
/* Set reference item */
|
||||||
reftmp[refcur] = addr;
|
if (reftmp) reftmp[refcur] = addr; // the 'if' shuts up scan-build
|
||||||
} else {
|
} else {
|
||||||
err = exprInternalParse(obj, &(tmp[cur]), tokens, lv, p2 - 1);
|
err = exprInternalParse(obj, &(tmp[cur]), tokens, lv, p2 - 1);
|
||||||
if (err != EXPR_ERROR_NOERROR)
|
if (err != EXPR_ERROR_NOERROR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user