diff options
author | Luis Felipe Strano Moraes <luis.strano@gmail.com> | 2012-02-03 11:17:48 -0200 |
---|---|---|
committer | Luis Felipe Strano Moraes <luis.strano@gmail.com> | 2012-02-03 11:17:48 -0200 |
commit | d387c0183a95f029d1624726b27a3c9094792113 (patch) | |
tree | ca4bfa9915c1c81654832d65cbc5b85a32549330 | |
parent | ec85a543148de66c0238ef373c2627f105732b1e (diff) | |
download | toybox-d387c0183a95f029d1624726b27a3c9094792113.tar.gz |
Removing unecessary allocation.
-rw-r--r-- | lib/args.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |