summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/smartcard.c
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-06-21 16:30:18 -0700
committerPavel Roskin <plroskin@gmail.com>2016-07-08 04:29:49 +0000
commit5829323ad88f8120730968cfe165e590a7fb2d59 (patch)
treeb5e13986d78de530a0a2168efdb95062e2803aca /sesman/chansrv/smartcard.c
parenta24df49241adc7c49dff777742d668f1d6c690ad (diff)
downloadxrdp-proprietary-5829323ad88f8120730968cfe165e590a7fb2d59.tar.gz
xrdp-proprietary-5829323ad88f8120730968cfe165e590a7fb2d59.zip
Use g_new or g_new0 when C++ compiler would complain about implicit cast
Diffstat (limited to 'sesman/chansrv/smartcard.c')
-rw-r--r--sesman/chansrv/smartcard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sesman/chansrv/smartcard.c b/sesman/chansrv/smartcard.c
index 38d80c8b..1e692909 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;