dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 66070 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r66070 | russell | 2007-05-24 17:07:39 -0500 (Thu, 24 May 2007) | 2 lines

Check the result of ast_string_field_init() in ast_channel_alloc()

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66072 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2007-05-24 22:08:33 +00:00
parent 13417b262f
commit 3643e6df2c
1 changed files with 2 additions and 1 deletions

View File

@ -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,