commit | d387c0183a95f029d1624726b27a3c9094792113 | [log] [tgz] |
---|---|---|
author | Luis Felipe Strano Moraes <luis.strano@gmail.com> | Fri Feb 03 11:17:48 2012 -0200 |
committer | Luis Felipe Strano Moraes <luis.strano@gmail.com> | Fri Feb 03 11:17:48 2012 -0200 |
tree | ca4bfa9915c1c81654832d65cbc5b85a32549330 | |
parent | ec85a543148de66c0238ef373c2627f105732b1e [diff] |
Removing unecessary allocation.
diff --git a/lib/args.c b/lib/args.c index 80ad4b6..1b69466 100644 --- a/lib/args.c +++ b/lib/args.c
@@ -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;