-
Incident report
-
Resolution: Fixed
-
Minor
-
3.2.2rc1, 3.4.0alpha1
/src/libs/zbxserver/macrofunc.c: 148 in zbx_calculate_macro_function()
>>> Execution cannot reach this statement: "case MACRO_FUNC_REGSUB:".
Incorrect assignment:
122 if (0 == strcmp(buf, "regsub")) 123 macro_func = MACRO_FUNC_IREGSUB; 124 else if (0 == strcmp(buf, "iregsub")) 125 macro_func = MACRO_FUNC_IREGSUB;
Found by Coverity: CID 154187.