summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/clientloop.c b/clientloop.c
index 35550eb4d..f2f474eab 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clientloop.c,v 1.253 2013/06/07 15:37:52 dtucker Exp $ */ 1/* $OpenBSD: clientloop.c,v 1.255 2013/11/08 00:39:15 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -846,7 +846,7 @@ void
846client_expect_confirm(int id, const char *request, 846client_expect_confirm(int id, const char *request,
847 enum confirm_action action) 847 enum confirm_action action)
848{ 848{
849 struct channel_reply_ctx *cr = xmalloc(sizeof(*cr)); 849 struct channel_reply_ctx *cr = xcalloc(1, sizeof(*cr));
850 850
851 cr->request_type = request; 851 cr->request_type = request;
852 cr->action = action; 852 cr->action = action;
@@ -869,7 +869,7 @@ client_register_global_confirm(global_confirm_cb *cb, void *ctx)
869 return; 869 return;
870 } 870 }
871 871
872 gc = xmalloc(sizeof(*gc)); 872 gc = xcalloc(1, sizeof(*gc));
873 gc->cb = cb; 873 gc->cb = cb;
874 gc->ctx = ctx; 874 gc->ctx = ctx;
875 gc->ref_count = 1; 875 gc->ref_count = 1;
@@ -1447,7 +1447,7 @@ client_new_escape_filter_ctx(int escape_char)
1447{ 1447{
1448 struct escape_filter_ctx *ret; 1448 struct escape_filter_ctx *ret;
1449 1449
1450 ret = xmalloc(sizeof(*ret)); 1450 ret = xcalloc(1, sizeof(*ret));
1451 ret->escape_pending = 0; 1451 ret->escape_pending = 0;
1452 ret->escape_char = escape_char; 1452 ret->escape_char = escape_char;
1453 return (void *)ret; 1453 return (void *)ret;