aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Felipe Strano Moraes <luis.strano@gmail.com>2012-02-03 11:17:48 -0200
committerLuis Felipe Strano Moraes <luis.strano@gmail.com>2012-02-03 11:17:48 -0200
commitd387c0183a95f029d1624726b27a3c9094792113 (patch)
treeca4bfa9915c1c81654832d65cbc5b85a32549330
parentec85a543148de66c0238ef373c2627f105732b1e (diff)
downloadtoybox-d387c0183a95f029d1624726b27a3c9094792113.tar.gz
Removing unecessary allocation.
-rw-r--r--lib/args.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/args.c b/lib/args.c
index 80ad4b66..1b69466e 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -223,8 +223,7 @@ void parse_optflaglist(struct getoptflagstate *gof)
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;