diff: fix segfault on empty dirs (Peter Korsgaard <peter.korsgaard@barco.com>)

This commit is contained in:
Denis Vlasenko 2007-04-05 21:29:42 +00:00
parent 1bb552b1d9
commit df5bbb938a

View File

@ -1070,7 +1070,7 @@ static int add_to_dirlist(const char *filename,
static char **get_dir(char *path)
{
dl_count = 0;
dl = NULL;
dl = xzalloc(sizeof(dl[0]));
/* If -r has been set, then the recursive_action function will be
* used. Unfortunately, this outputs the root directory along with