mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_expr
This commit is contained in:
parent
05cc20e636
commit
75a37ba42e
@ -73,7 +73,7 @@ int exprFuncListAdd(exprFuncList * flist, char *name, exprFuncType ptr, int min,
|
||||
if (refmin >= 0 && refmax >= 0) {
|
||||
if (refmin > refmax) {
|
||||
result = refmin;
|
||||
refmin = max;
|
||||
refmin = refmax;
|
||||
refmax = result;
|
||||
}
|
||||
}
|
||||
@ -148,7 +148,7 @@ int exprFuncListAddType(exprFuncList * flist, char *name, int type, int min, int
|
||||
if (refmin >= 0 && refmax >= 0) {
|
||||
if (refmin > refmax) {
|
||||
result = refmin;
|
||||
refmin = max;
|
||||
refmin = refmax;
|
||||
refmax = result;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user