diff options
author | Joshua Colp <jcolp@digium.com> | 2006-10-02 16:56:15 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-10-02 16:56:15 +0000 |
commit | c0a16b54c69078599898f87c34a418674844fc75 (patch) | |
tree | 6f01e9d575d07b62c2d2d95ed6b1a69a5870fee5 /res/res_monitor.c | |
parent | bda306fa9659e9d7bed8f397cae4fb4ec973a629 (diff) |
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
Diffstat (limited to 'res/res_monitor.c')
-rw-r--r-- | res/res_monitor.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/res/res_monitor.c b/res/res_monitor.c index ebac350f8..b1739f977 100644 --- a/res/res_monitor.c +++ b/res/res_monitor.c @@ -575,8 +575,6 @@ void ast_monitor_setjoinfiles(struct ast_channel *chan, int turnon) chan->monitor->joinfiles = turnon; } -#define IS_NULL_STRING(string) ((!(string)) || (ast_strlen_zero((string)))) - enum MONITOR_PAUSING_ACTION { 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; 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"); return -1; } |