aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_nbs.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_nbs.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_nbs.c')
-rwxr-xr-xchannels/chan_nbs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_nbs.c b/channels/chan_nbs.c
index 3c6583f8f..edb989c10 100755
--- a/channels/chan_nbs.c
+++ b/channels/chan_nbs.c
@@ -45,6 +45,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/module.h"
#include "asterisk/pbx.h"
#include "asterisk/options.h"
+#include "asterisk/utils.h"
static const char desc[] = "Network Broadcast Sound Support";
static const char type[] = "NBS";
@@ -135,7 +136,7 @@ static struct nbs_pvt *nbs_alloc(void *data)
p = malloc(sizeof(struct nbs_pvt));
if (p) {
memset(p, 0, sizeof(struct nbs_pvt));
- if (strlen(opts)) {
+ if (!ast_strlen_zero(opts)) {
if (strchr(opts, 'm'))
flags |= NBS_FLAG_MUTE;
if (strchr(opts, 'o'))