Code

snmp plugin: Fix iterating over tables without an instance configuration.
[collectd.git] / src / mysql.c
index c7b796b18d79d5c92dcc34cacba287c4a0db26ea..69df7c708acce1c9f19a034cb2eb094590d46a02 100644 (file)
@@ -707,7 +707,6 @@ static int mysql_read (user_data_t *ud)
        MYSQL_RES *res;
        MYSQL_ROW  row;
        char      *query;
-       int        field_num;
 
        unsigned long long qcache_hits          = 0ULL;
        unsigned long long qcache_inserts       = 0ULL;
@@ -743,7 +742,6 @@ static int mysql_read (user_data_t *ud)
        if (res == NULL)
                return (-1);
 
-       field_num = mysql_num_fields (res);
        while ((row = mysql_fetch_row (res)))
        {
                char *key;