diff options
Diffstat (limited to 'rfbserver.c')
-rw-r--r-- | rfbserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rfbserver.c b/rfbserver.c index 3c3c858..a4decae 100644 --- a/rfbserver.c +++ b/rfbserver.c @@ -185,7 +185,7 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP) int addrlen = sizeof(struct sockaddr_in); int i; - cl = (rfbClientPtr)malloc(sizeof(rfbClientRec)); + cl = (rfbClientPtr)calloc(sizeof(rfbClientRec),1); cl->screen = rfbScreen; cl->sock = sock; |