@cryptotaxi247 / netdata-1 / commits / 370a89097

Fix coverity issues (#13168)

Stelios Fragkakis committed Jun 17, 2022 at 00:33 UTC 370a8909733a6f790072a3d47f793d7d0fd307e2
2 files changed +2 -2
collectors/diskspace.plugin/plugin_diskspace.c
+1 -1
@@ -9,7 +9,7 @@
9 #define DEFAULT_EXCLUDED_FILESYSTEMS "*gvfs *gluster* *s3fs *ipfs *davfs2 *httpfs *sshfs *gdfs *moosefs fusectl autofs"
10 #define CONFIG_SECTION_DISKSPACE "plugin:proc:diskspace"
11
12 -#define MAX_STAT_USEC 10000
12 +#define MAX_STAT_USEC 10000LU
13 #define SLOW_UPDATE_EVERY 5
14
15 static netdata_thread_t *diskspace_slow_thread = NULL;
collectors/statsd.plugin/statsd.c
+1 -1
@@ -593,7 +593,6 @@ static inline void statsd_process_set(STATSD_METRIC *m, const char *value) {
593 if(unlikely(m->reset)) {
594 if(likely(m->set.dict)) {
595 dictionary_destroy(m->set.dict);
596 - dictionary_register_insert_callback(m->set.dict, dictionary_metric_set_value_insert_callback, m);
596 m->set.dict = NULL;
597 }
598 statsd_reset_metric(m);
@@ -601,6 +600,7 @@ static inline void statsd_process_set(STATSD_METRIC *m, const char *value) {
600
601 if (unlikely(!m->set.dict)) {
602 m->set.dict = dictionary_create(STATSD_DICTIONARY_OPTIONS);
603 + dictionary_register_insert_callback(m->set.dict, dictionary_metric_set_value_insert_callback, m);
604 m->set.unique = 0;
605 }
606