From 2c4869fc9a8f2c72e6f8631b25894246a0a90701 Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 16 Oct 2001 20:57:26 +0000 Subject: deferUpdate --- rfbserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rfbserver.c') 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; -- cgit v1.2.1