aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_monitor.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-02 16:56:15 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-02 16:56:15 +0000
commit43180a62739e491c34755ace95ab2fd7eac55f31 (patch)
tree6f01e9d575d07b62c2d2d95ed6b1a69a5870fee5 /res/res_monitor.c
parentbc33bdd29f6f39c5d5b7e236e0dc895dc81e0522 (diff)
Get rid of the IS_NULL_STRING macro and use ast_strlen_zero instead (issue #8070 reported by wrmem)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44153 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_monitor.c')
-rw-r--r--res/res_monitor.c4
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;
}