Use {0} initializer for all stack allocated char arrays
authorMichael Rash <mbr@cipherdyne.org>
Wed, 22 May 2013 02:00:15 +0000 (22:00 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Wed, 22 May 2013 02:00:15 +0000 (22:00 -0400)
commit52462e7dbaa8b525f986f43524549ead36e09325
tree52bf053dcc08726d582f7c0a2143d39bdd7643e0
parent2e2e7fcc0eb9065aa40c5ea915ecb48a99bd9c51
Use {0} initializer for all stack allocated char arrays

Lots of places in the code were already using {0} to initialize stack char
arrays, but memset() was being used as well.  This commit removes all
unnecessary memset() calls against char arrays that are already initialized
via {0} (which sets all members to zero for such arrays).
20 files changed:
client/config_init.c
client/fwknop.c
client/getpasswd.c
client/http_resolve_host.c
client/spa_comm.c
lib/cipher_funcs.c
lib/fko_hmac.c
lib/hmac.c
server/access.c
server/config_init.c
server/extcmd.c
server/fw_util_ipf.c
server/fw_util_ipfw.c
server/fw_util_iptables.c
server/fw_util_pf.c
server/fwknopd_common.h
server/incoming_spa.c
server/replay_cache.c
server/tcp_server.c
server/utils.c