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

Avoidable compiler warning in zbxprometheus.c

    XMLWordPrintable

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 53 (Jun 2019)
    • Story Points:
      0.125

      Description

      Steps to reproduce:

      1. Compile Zabbix server/proxy from sources

      Result:

      Making all in zbxprometheus
      zbxprometheus.c: In function ‘zbx_prometheus_pattern’:
      zbxprometheus.c:1535:34: warning: ‘label’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         *value = zbx_strdup(NULL, label->value);
                                        ^~
      zbxprometheus.c:1520:27: note: ‘label’ was declared here
         zbx_prometheus_label_t *label;
                                 ^~~~~
      

      Expected:
      No warnings that can be easily fixed. See zbxprometheus.patch.

        Attachments

          Activity

            People

            Assignee:
            viktors.tjarve Viktors Tjarve
            Reporter:
            cyclone Glebs Ivanovskis
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: