summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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)
554 554
555 if (path_select_list) { 555 if (path_select_list) {
556 temp_list = path_select_list; 556 temp_list = path_select_list;
557 stat_buf = malloc(sizeof stat_buf); 557 stat_buf = malloc(sizeof *stat_buf);
558 while (temp_list) { 558 while (temp_list) {
559 /* Stat each entry to check that dir exists */ 559 /* Stat each entry to check that dir exists */
560 if (stat (temp_list->name, &stat_buf[0])) { 560 if (stat (temp_list->name, &stat_buf[0])) {