aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_oss.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-27 02:19:37 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-27 02:19:37 +0000
commitee234bbb3efea571ea7ad138de22f1e010b92ec9 (patch)
tree9f24232bc60be91cb9017aab391d2eff0f4a6341 /channels/chan_oss.c
parent4cc87ee6e1e0ad07889f178b9c843fdd55d826e8 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@6866 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_oss.c')
-rwxr-xr-xchannels/chan_oss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index eb5065382..ef163f43a 100755
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -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;