Mercurial > hg > toybox
diff lib/args.c @ 424:85a5e01e7ad8
Removing unecessary allocation.
author | Luis Felipe Strano Moraes <luis.strano@gmail.com> |
---|---|
date | Fri, 03 Feb 2012 11:17:48 -0200 |
parents | 2cbbd4c5eaaa |
children | f558dce66095 |
line wrap: on
line diff
--- a/lib/args.c Thu Feb 02 07:44:04 2012 -0600 +++ b/lib/args.c Fri Feb 03 11:17:48 2012 -0200 @@ -223,8 +223,7 @@ if (CFG_TOYBOX_DEBUG && !*end) error_exit("(longopt) didn't end"); - // Allocate and init a new struct longopts - lo = xmalloc(sizeof(struct longopts)); + // init a new struct longopts lo->next = gof->longopts; lo->opt = new; lo->str = options;