From d387c0183a95f029d1624726b27a3c9094792113 Mon Sep 17 00:00:00 2001 From: Luis Felipe Strano Moraes Date: Fri, 3 Feb 2012 11:17:48 -0200 Subject: Removing unecessary allocation. --- lib/args.c | 3 +-- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3