From 3119961e8c4523e744ad284f7b4fffdd0a1aede5 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Mon, 28 Jul 2003 14:27:05 +0000 Subject: [PATCH] Minor formatting fix git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1231 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channel.c b/channel.c index bcbf8f11ad..b3fb697f4f 100755 --- a/channel.c +++ b/channel.c @@ -279,8 +279,8 @@ struct ast_channel *ast_channel_alloc(int needqueue) return NULL; PTHREAD_MUTEX_LOCK(&chlock); tmp = malloc(sizeof(struct ast_channel)); - memset(tmp, 0, sizeof(struct ast_channel)); if (tmp) { + memset(tmp, 0, sizeof(struct ast_channel)); pvt = malloc(sizeof(struct ast_channel_pvt)); if (pvt) { memset(pvt, 0, sizeof(struct ast_channel_pvt));