From 731c44d75234b5a35d267d67418db233dcdec0c6 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 25 Aug 2011 14:52:42 +0200 Subject: fix more inverted memset parameters Signed-off-by: Hans de Goede --- server/smartcard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/smartcard.c') diff --git a/server/smartcard.c b/server/smartcard.c index 2ff13101..056caa62 100644 --- a/server/smartcard.c +++ b/server/smartcard.c @@ -506,12 +506,12 @@ SmartCardChannel *g_smartcard_channel; static void smartcard_init(void) { ChannelCbs channel_cbs; - ClientCbs client_cbs = {0,}; + ClientCbs client_cbs; ASSERT(!g_smartcard_channel); - memset(&channel_cbs, sizeof(channel_cbs), 0); - memset(&client_cbs, sizeof(client_cbs), 0); + memset(&channel_cbs, 0, sizeof(channel_cbs)); + memset(&client_cbs, 0, sizeof(client_cbs)); channel_cbs.config_socket = smartcard_channel_client_config_socket; channel_cbs.on_disconnect = smartcard_channel_on_disconnect; -- cgit