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:
Russell Bryant
2005-10-27 02:19:37 +00:00
parent 3332a8acd1
commit 9ddf0e4dce
14 changed files with 92 additions and 90 deletions

View File

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