summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/smartcard.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/chansrv/smartcard.c')
-rw-r--r--sesman/chansrv/smartcard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sesman/chansrv/smartcard.c b/sesman/chansrv/smartcard.c
index 38d80c8b..41fe66a4 100644
--- a/sesman/chansrv/smartcard.c
+++ b/sesman/chansrv/smartcard.c
@@ -900,7 +900,8 @@ scard_add_new_device(tui32 device_id)
return -1;
}
- if ((sc = g_malloc(sizeof(SMARTCARD), 1)) == NULL)
+ sc = g_new0(SMARTCARD, 1);
+ if (sc == NULL)
{
log_error("system out of memory");
return -1;
@@ -1255,7 +1256,7 @@ scard_send_GetStatusChange(IRP* irp, char *context, int context_bytes,
struct stream *s;
tui32 ioctl;
int bytes;
- int i;
+ unsigned int i;
int num_chars;
int index;
twchar w_reader_name[100];