summaryrefslogtreecommitdiffstats
path: root/rfbserver.c
diff options
context:
space:
mode:
authordscho <dscho>2001-10-16 20:57:26 +0000
committerdscho <dscho>2001-10-16 20:57:26 +0000
commit2c4869fc9a8f2c72e6f8631b25894246a0a90701 (patch)
treee7396ef0a8a40c102bde4b490897204e368f233a /rfbserver.c
parent47f18e575da762733c19e9f499472ba42f478df8 (diff)
downloadlibvncserver-2c4869fc9a8f2c72e6f8631b25894246a0a90701.zip
libvncserver-2c4869fc9a8f2c72e6f8631b25894246a0a90701.tar.gz
deferUpdate
Diffstat (limited to 'rfbserver.c')
-rw-r--r--rfbserver.c2
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;
OpenPOWER on IntegriCloud