diff options
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clientloop.c b/clientloop.c index 86695cc16..311dc1393 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 |
@@ -841,7 +841,7 @@ void | |||
841 | client_expect_confirm(int id, const char *request, | 841 | client_expect_confirm(int id, const char *request, |
842 | enum confirm_action action) | 842 | enum confirm_action action) |
843 | { | 843 | { |
844 | struct channel_reply_ctx *cr = xmalloc(sizeof(*cr)); | 844 | struct channel_reply_ctx *cr = xcalloc(1, sizeof(*cr)); |
845 | 845 | ||
846 | cr->request_type = request; | 846 | cr->request_type = request; |
847 | cr->action = action; | 847 | cr->action = action; |
@@ -864,7 +864,7 @@ client_register_global_confirm(global_confirm_cb *cb, void *ctx) | |||
864 | return; | 864 | return; |
865 | } | 865 | } |
866 | 866 | ||
867 | gc = xmalloc(sizeof(*gc)); | 867 | gc = xcalloc(1, sizeof(*gc)); |
868 | gc->cb = cb; | 868 | gc->cb = cb; |
869 | gc->ctx = ctx; | 869 | gc->ctx = ctx; |
870 | gc->ref_count = 1; | 870 | gc->ref_count = 1; |
@@ -1442,7 +1442,7 @@ client_new_escape_filter_ctx(int escape_char) | |||
1442 | { | 1442 | { |
1443 | struct escape_filter_ctx *ret; | 1443 | struct escape_filter_ctx *ret; |
1444 | 1444 | ||
1445 | ret = xmalloc(sizeof(*ret)); | 1445 | ret = xcalloc(1, sizeof(*ret)); |
1446 | ret->escape_pending = 0; | 1446 | ret->escape_pending = 0; |
1447 | ret->escape_char = escape_char; | 1447 | ret->escape_char = escape_char; |
1448 | return (void *)ret; | 1448 | return (void *)ret; |