Mercurial > gnulib
changeset 5948:f410a15537e7
(make_dir_parents): Don't apply sizeof to a hard-coded type name.
Use the variable name instead.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Wed, 29 Jun 2005 21:28:00 +0000 |
parents | 5973137e95c5 |
children | 9300a4e513e9 |
files | lib/mkdir-p.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/mkdir-p.c Wed Jun 29 07:35:09 2005 +0000 +++ b/lib/mkdir-p.c Wed Jun 29 21:28:00 2005 +0000 @@ -266,7 +266,7 @@ 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;