summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2024-11-05 09:12:28 +0100
committerGitHub <noreply@github.com>2024-11-05 09:12:28 +0100
commit94150ae347beb25ac369d5773834ceef7f3736d3 (patch)
treecf15c74a82ffc732fff3b5d4d7cf86086b440762
parentad99acbb8b51835fddbbe67838a6ca7c5f114b18 (diff)
parentc0bcad7feb18bd1e3a1f98f2f41c437925a8dbf0 (diff)
downloadmonitoring-plugins-94150ae347beb25ac369d5773834ceef7f3736d3.tar.gz
Merge pull request #2039 from RincewindsHat/fix/check_disk_initialize_variables
check_disk: Initialize most variables
-rw-r--r--plugins/check_disk.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index d1d1b92a..037a6f7a 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -156,20 +156,20 @@ static struct name_list *seen = NULL;
156int main(int argc, char **argv) { 156int main(int argc, char **argv) {
157 int result = STATE_UNKNOWN; 157 int result = STATE_UNKNOWN;
158 int disk_result = STATE_UNKNOWN; 158 int disk_result = STATE_UNKNOWN;
159 char *output; 159 char *output = NULL;
160 char *ignored; 160 char *ignored = NULL;
161 char *details; 161 char *details = NULL;
162 char *perf; 162 char *perf = NULL;
163 char *perf_ilabel; 163 char *perf_ilabel = NULL;
164 char *preamble = " - free space:"; 164 char *preamble = " - free space:";
165 char *ignored_preamble = " - ignored paths:"; 165 char *ignored_preamble = " - ignored paths:";
166 char *flag_header; 166 char *flag_header = NULL;
167 int temp_result; 167 int temp_result = STATE_UNKNOWN;
168 168
169 struct mount_entry *me; 169 struct mount_entry *me = NULL;
170 struct fs_usage fsp; 170 struct fs_usage fsp = {0};
171 struct parameter_list *temp_list; 171 struct parameter_list *temp_list = NULL;
172 struct parameter_list *path; 172 struct parameter_list *path = NULL;
173 173
174#ifdef __CYGWIN__ 174#ifdef __CYGWIN__
175 char mountdir[32]; 175 char mountdir[32];