aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-07-28 14:27:05 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-07-28 14:27:05 +0000
commit6caea5c08d700b87ea4171216c8c112b700f7d5f (patch)
tree7510404913917d988036e49eb0feaeb71a21467b /channel.c
parentd866f747fbcd4e6b7b3b826b27f98be60acd6ae8 (diff)
Minor formatting fix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1231 f38db490-d61c-443f-a65b-d21fe96a405b
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));