diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 00:06:06 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-10 00:06:06 +0100 |
commit | 21c39515903c34bc6428a544c88cf1c100786847 (patch) | |
tree | c9d0465e24cc3148c84c2fee191f2b1bfc71b841 /plugins/check_disk.c | |
parent | ed01d534474cc640515f1d5155349f14090aafe9 (diff) | |
parent | 5d7d620903a2fb40f8cd3140081bfb7ceaf125d5 (diff) | |
download | monitoring-plugins-21c39515903c34bc6428a544c88cf1c100786847.tar.gz |
Merge branch 'master' into check_swap_again
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 d1d1b92a..037a6f7a 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]; |