diff options
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index 8303ce8c6..6522837ed 100644 --- a/main/channel.c +++ b/main/channel.c @@ -652,7 +652,8 @@ struct ast_channel *ast_channel_alloc(int needqueue, int state, const char *cid_ return NULL; } - ast_string_field_init(tmp, 128); + if ((ast_string_field_init(tmp, 128))) + return NULL; /* Don't bother initializing the last two FD here, because they will *always* be set just a few lines down (AST_TIMING_FD, |