summaryrefslogtreecommitdiffstats
path: root/server/smartcard.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/smartcard.c')
-rw-r--r--server/smartcard.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/smartcard.c b/server/smartcard.c
index facc4b37..84aa18b3 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -512,14 +512,11 @@ SmartCardChannel *g_smartcard_channel;
static void smartcard_init(void)
{
- ChannelCbs channel_cbs;
- ClientCbs client_cbs;
+ ChannelCbs channel_cbs = { NULL, };
+ ClientCbs client_cbs = { NULL, };
ASSERT(!g_smartcard_channel);
- 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;
channel_cbs.send_item = smartcard_channel_send_item;