mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-18 07:48:14 +00:00
Remove unnecessary checks before calls to ast_strlen_zero. Also, change
some places where strlen is used instead of ast_strlen_zero git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -881,11 +881,11 @@ static struct ast_channel *oss_new(struct chan_oss_pvt *o,
|
||||
c->writeformat = AST_FORMAT_SLINEAR;
|
||||
c->tech_pvt = o;
|
||||
|
||||
if (ctx && !ast_strlen_zero(ctx))
|
||||
if (!ast_strlen_zero(ctx))
|
||||
ast_copy_string(c->context, ctx, sizeof(c->context));
|
||||
if (ext && !ast_strlen_zero(ext))
|
||||
if (!ast_strlen_zero(ext))
|
||||
ast_copy_string(c->exten, ext, sizeof(c->exten));
|
||||
if (o->language && !ast_strlen_zero(o->language))
|
||||
if (!ast_strlen_zero(o->language))
|
||||
ast_copy_string(c->language, o->language, sizeof(c->language));
|
||||
|
||||
o->owner = c;
|
||||
|
||||
Reference in New Issue
Block a user