- Don't crash when a directory is specified instead of a file list (i.e. specified_files.root.normalized_name == NULL)

svn path=/trunk/; revision=63860
This commit is contained in:
Thomas Faber 2014-08-11 08:05:33 +00:00
parent a4d36a3511
commit 0d5a8d0594

View file

@ -210,7 +210,8 @@ dir_hash_destroy_dir(struct target_dir_hash *dh, struct target_dir_entry *de)
free(tf->target_name);
free(tf);
}
delete_entry_by_normname(dh, de->normalized_name);
if (de->normalized_name)
delete_entry_by_normname(dh, de->normalized_name);
free(de->normalized_name);
free(de->case_name);
}