(make_dir_parents): Don't apply sizeof to a hard-coded type name.

Use the variable name instead.
This commit is contained in:
Jim Meyering 2005-06-29 21:22:06 +00:00
parent 412a83b11b
commit dc59bb5133

View File

@ -207,7 +207,7 @@ make_dir_parents (char const *arg,
if (re_protect)
{
struct ptr_list *new = (struct ptr_list *)
alloca (sizeof (struct ptr_list));
alloca (sizeof *new);
new->dirname_end = slash;
new->next = leading_dirs;
leading_dirs = new;