diff options
author | Jim Meyering <jim@meyering.net> | 2005-06-29 21:22:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-06-29 21:22:06 +0000 |
commit | dc59bb5133bc0e2414a3aea0a0ec49309fc98403 (patch) | |
tree | b96f368e6a5c065220ab3858189a9619028c1298 /lib | |
parent | 412a83b11b9e555a16b351f43189290e256a59fc (diff) | |
download | coreutils-dc59bb5133bc0e2414a3aea0a0ec49309fc98403.tar.xz |
(make_dir_parents): Don't apply sizeof to a hard-coded type name.
Use the variable name instead.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkdir-p.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkdir-p.c b/lib/mkdir-p.c index 97775eb55..962f452bd 100644 --- a/lib/mkdir-p.c +++ b/lib/mkdir-p.c @@ -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; |