aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/diff.c b/coreutils/diff.c
index 1903bb151..75557187c 100644
--- a/coreutils/diff.c
+++ b/coreutils/diff.c
@@ -1070,7 +1070,7 @@ static int add_to_dirlist(const char *filename,
1070static char **get_dir(char *path) 1070static char **get_dir(char *path)
1071{ 1071{
1072 dl_count = 0; 1072 dl_count = 0;
1073 dl = NULL; 1073 dl = xzalloc(sizeof(dl[0]));
1074 1074
1075 /* If -r has been set, then the recursive_action function will be 1075 /* If -r has been set, then the recursive_action function will be
1076 * used. Unfortunately, this outputs the root directory along with 1076 * used. Unfortunately, this outputs the root directory along with