diff lib/args.c @ 480:f558dce66095

Nathan McSween convinced me compilers that inline memset() can optimize the bzero case pretty well.
author Rob Landley <rob@landley.net>
date Sat, 18 Feb 2012 22:44:11 -0600
parents 85a5e01e7ad8
children bc4615e2e339
line wrap: on
line diff
--- a/lib/args.c	Sat Feb 18 18:54:30 2012 -0600
+++ b/lib/args.c	Sat Feb 18 22:44:11 2012 -0600
@@ -181,7 +181,7 @@
 	int i;
 
 	// Parse option format string
-	bzero(gof, sizeof(struct getoptflagstate));
+	memset(gof, 0, sizeof(struct getoptflagstate));
 	gof->maxargs = INT_MAX;
 	if (!options) return;