diff options
author | Rob Landley <rob@landley.net> | 2012-02-18 22:44:11 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-02-18 22:44:11 -0600 |
commit | 2b54b1ab1a796ef89426f021319c11ff22710947 (patch) | |
tree | 722e6b9c9360965a65e932591fda3478cea290f9 /main.c | |
parent | 4696bfc4057e87ea8a66bd64aafb9ca14a64290e (diff) | |
download | toybox-2b54b1ab1a796ef89426f021319c11ff22710947.tar.gz |
Nathan McSween convinced me compilers that inline memset() can optimize the bzero case pretty well.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -84,7 +84,7 @@ void toy_init(struct toy_list *which, char *argv[]) // Free old toys contents (to be reentrant) if (toys.optargs != toys.argv+1) free(toys.optargs); - bzero(&toys, sizeof(struct toy_context)); + memset(&toys, 0, sizeof(struct toy_context)); toys.which = which; toys.argv = argv; |