mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +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:
@@ -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'))
|
||||
|
Reference in New Issue
Block a user