aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/check_disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index c7a2b8a3..1be5e6c3 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -554,7 +554,7 @@ process_arguments (int argc, char **argv)
if (path_select_list) {
temp_list = path_select_list;
- stat_buf = malloc(sizeof stat_buf);
+ stat_buf = malloc(sizeof *stat_buf);
while (temp_list) {
/* Stat each entry to check that dir exists */
if (stat (temp_list->name, &stat_buf[0])) {