mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Check the result of ast_string_field_init() in ast_channel_alloc()
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -742,7 +742,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,
|
||||
|
Reference in New Issue
Block a user