[nsd-users] Remove needless memory zeroing

Michael McConville mmcco at mykolab.com
Tue Jan 19 03:46:03 UTC 2016


Unless I'm misunderstanding something, anonymously mmapped memory is
always zeroed by the kernel and this memset call is therefore redundant.

Best,
Michael


Index: rrl.c
===================================================================
--- rrl.c	(revision 4584)
+++ rrl.c	(working copy)
@@ -90,8 +90,6 @@
 				strerror(errno));
 			exit(1);
 		}
-		memset(rrl_maps[i], 0,
-			sizeof(struct rrl_bucket)*rrl_array_size);
 	}
 #else
 	(void)numch;



More information about the nsd-users mailing list