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. --- lib/args.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/args.c') diff --git a/lib/args.c b/lib/args.c index 1b69466e..0ec20375 100644 --- a/lib/args.c +++ b/lib/args.c @@ -181,7 +181,7 @@ void parse_optflaglist(struct getoptflagstate *gof) int i; // Parse option format string - bzero(gof, sizeof(struct getoptflagstate)); + memset(gof, 0, sizeof(struct getoptflagstate)); gof->maxargs = INT_MAX; if (!options) return; -- cgit v1.2.3