summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-07-28 14:27:05 +0000
committerMark Spencer <markster@digium.com>2003-07-28 14:27:05 +0000
commit3119961e8c4523e744ad284f7b4fffdd0a1aede5 (patch)
tree7510404913917d988036e49eb0feaeb71a21467b /channel.c
parente2ca759d56379f350a11faf964083aa2b6f144d0 (diff)
Minor formatting fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channel.c b/channel.c
index bcbf8f11a..b3fb697f4 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));