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

Redundant goto statements in is_item_processed_by_server()

XMLWordPrintable

    • Sprint 18, Sprint 19
    • 0.125

      Suggested patch:

      Index: src/libs/zbxdbcache/dbconfig.c
      ===================================================================
      --- src/libs/zbxdbcache/dbconfig.c	(revision 71415)
      +++ src/libs/zbxdbcache/dbconfig.c	(working copy)
      @@ -147,14 +147,10 @@
       								0 == strcmp(arg3, "items_unsupported"))
       						{
       							ret = SUCCEED;
      -							goto clean;
       						}
       					}
       					else if (0 == strcmp(arg2, "discovery") && 0 == strcmp(arg3, "interfaces"))
      -					{
       						ret = SUCCEED;
      -						goto clean;
      -					}
       				}
       				else if (0 == strcmp(arg1, "proxy") && 0 == strcmp(arg3, "lastaccess"))
       					ret = SUCCEED;
      

            glebs.ivanovskis Glebs Ivanovskis (Inactive)
            glebs.ivanovskis Glebs Ivanovskis (Inactive)
            Team C
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: