Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11453

Execution cannot reach "MACRO_FUNC_REGSUB" statement reported by Coverity

XMLWordPrintable

      /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.

            Unassigned Unassigned
            s.paskevics Sergejs Paskevics
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: