diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-05 08:12:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 08:12:28 (GMT) |
commit | 94150ae347beb25ac369d5773834ceef7f3736d3 (patch) | |
tree | cf15c74a82ffc732fff3b5d4d7cf86086b440762 /plugins/check_disk.c | |
parent | ad99acbb8b51835fddbbe67838a6ca7c5f114b18 (diff) | |
parent | c0bcad7feb18bd1e3a1f98f2f41c437925a8dbf0 (diff) | |
download | monitoring-plugins-94150ae347beb25ac369d5773834ceef7f3736d3.tar.gz |
Merge pull request #2039 from RincewindsHat/fix/check_disk_initialize_variables
check_disk: Initialize most variables
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r-- | plugins/check_disk.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index d1d1b92..037a6f7 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -156,20 +156,20 @@ static struct name_list *seen = NULL; | |||
156 | int main(int argc, char **argv) { | 156 | int 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]; |