Minor formatting fix
authorMark Spencer <markster@digium.com>
Mon, 28 Jul 2003 14:27:05 +0000 (14:27 +0000)
committerMark Spencer <markster@digium.com>
Mon, 28 Jul 2003 14:27:05 +0000 (14:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1231 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c

index bcbf8f1..b3fb697 100755 (executable)
--- 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));