From 2b54b1ab1a796ef89426f021319c11ff22710947 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 18 Feb 2012 22:44:11 -0600 Subject: Nathan McSween convinced me compilers that inline memset() can optimize the bzero case pretty well. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 0820e87b..1b1f0fcc 100644 --- a/main.c +++ b/main.c @@ -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; -- cgit v1.2.3