summaryrefslogtreecommitdiffstats
path: root/streaming
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2023-07-12 21:28:46 +0300
committerGitHub <noreply@github.com>2023-07-12 21:28:46 +0300
commit15e15d0f24fd0f6122a367db9efd93c2aa8c1146 (patch)
treead54b39f24f1bd7a9231dc2550f6cfde578f7af4 /streaming
parent304ab4fc66572efc9b461316b2962007f30ec111 (diff)
Fix coverity issues (#15375)
* parser cannot be null -- CID 394449 Dereference before null check (REVERSE_INULL) * Fix warning - ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
Diffstat (limited to 'streaming')
-rw-r--r--streaming/receiver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/receiver.c b/streaming/receiver.c
index c827ca7a1d..1e08433c0e 100644
--- a/streaming/receiver.c
+++ b/streaming/receiver.c
@@ -363,7 +363,7 @@ static size_t streaming_parser(struct receiver_state *rpt, struct plugind *cd, i
}
}
- result = parser ? parser->user.data_collections_count : 0;
+ result = parser->user.data_collections_count;
// free parser with the pop function
netdata_thread_cleanup_pop(1);