diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-04 23:12:18 +0100 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-04 23:12:18 +0100 |
commit | c0bcad7feb18bd1e3a1f98f2f41c437925a8dbf0 (patch) | |
tree | e693332a11c69bce98c2b3fa2f1430db331cb9b7 | |
parent | 6d1d1dac32841d5ca6ee51bb09b30a6c604b17e2 (diff) | |
download | monitoring-plugins-c0bcad7feb18bd1e3a1f98f2f41c437925a8dbf0.tar.gz |
check_disk: Initialize most variables
-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]; |