diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-08-25 14:52:42 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2011-08-25 14:55:39 +0200 |
commit | 731c44d75234b5a35d267d67418db233dcdec0c6 (patch) | |
tree | e813c09e5a293b0596309ed43387c1a56a96d89f /server/smartcard.c | |
parent | 8c9404374a6066cf5f5567b93e2e5e9debd2c722 (diff) | |
download | spice-731c44d75234b5a35d267d67418db233dcdec0c6.tar.gz spice-731c44d75234b5a35d267d67418db233dcdec0c6.tar.xz spice-731c44d75234b5a35d267d67418db233dcdec0c6.zip |
fix more inverted memset parameters
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'server/smartcard.c')
-rw-r--r-- | server/smartcard.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |