summaryrefslogtreecommitdiffstats
path: root/src/collectors/systemd-journal.plugin
diff options
context:
space:
mode:
Diffstat (limited to 'src/collectors/systemd-journal.plugin')
-rw-r--r--src/collectors/systemd-journal.plugin/systemd-journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collectors/systemd-journal.plugin/systemd-journal.c b/src/collectors/systemd-journal.plugin/systemd-journal.c
index 57d7ecbc4..6da9c687e 100644
--- a/src/collectors/systemd-journal.plugin/systemd-journal.c
+++ b/src/collectors/systemd-journal.plugin/systemd-journal.c
@@ -1037,7 +1037,7 @@ static ND_SD_JOURNAL_STATUS netdata_systemd_journal_query_one_file(
struct journal_file *jf, FUNCTION_QUERY_STATUS *fqs) {
sd_journal *j = NULL;
- errno = 0;
+ errno_clear();
fstat_cache_enable_on_thread();