Index: coreutils/diff.c =================================================================== --- coreutils/diff.c (revision 18333) +++ coreutils/diff.c (working copy) @@ -1070,7 +1070,7 @@ static char **get_dir(char *path) { dl_count = 0; - dl = NULL; + dl = xmalloc(sizeof(dl[0])); /* If -r has been set, then the recursive_action function will be * used. Unfortunately, this outputs the root directory along with