mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-06 09:59:20 +00:00
Get rid of the IS_NULL_STRING macro and use ast_strlen_zero instead (issue #8070 reported by wrmem)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@44153 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -575,8 +575,6 @@ void ast_monitor_setjoinfiles(struct ast_channel *chan, int turnon)
|
|||||||
chan->monitor->joinfiles = turnon;
|
chan->monitor->joinfiles = turnon;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define IS_NULL_STRING(string) ((!(string)) || (ast_strlen_zero((string))))
|
|
||||||
|
|
||||||
enum MONITOR_PAUSING_ACTION
|
enum MONITOR_PAUSING_ACTION
|
||||||
{
|
{
|
||||||
MONITOR_ACTION_PAUSE,
|
MONITOR_ACTION_PAUSE,
|
||||||
@@ -588,7 +586,7 @@ static int do_pause_or_unpause(struct mansession *s, struct message *m, int acti
|
|||||||
struct ast_channel *c = NULL;
|
struct ast_channel *c = NULL;
|
||||||
char *name = astman_get_header(m, "Channel");
|
char *name = astman_get_header(m, "Channel");
|
||||||
|
|
||||||
if (IS_NULL_STRING(name)) {
|
if (ast_strlen_zero(name)) {
|
||||||
astman_send_error(s, m, "No channel specified");
|
astman_send_error(s, m, "No channel specified");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user