mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-21 15:43:30 +08:00
(make_dir_parents): Don't apply sizeof to a hard-coded type name.
Use the variable name instead.
This commit is contained in:
parent
412a83b11b
commit
dc59bb5133
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user