changeset 424:85a5e01e7ad8

Removing unecessary allocation.
author Luis Felipe Strano Moraes <luis.strano@gmail.com>
date Fri, 03 Feb 2012 11:17:48 -0200
parents 2a2b483a4cf9
children 312b8acb65aa
files lib/args.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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;