[svn-commits] file: trunk r44153 - /trunk/res/res_monitor.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Mon Oct 2 09:56:15 MST 2006
Author: file
Date: Mon Oct 2 11:56:15 2006
New Revision: 44153
URL: http://svn.digium.com/view/asterisk?rev=44153&view=rev
Log:
Get rid of the IS_NULL_STRING macro and use ast_strlen_zero instead (issue #8070 reported by wrmem)
Modified:
trunk/res/res_monitor.c
Modified: trunk/res/res_monitor.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_monitor.c?rev=44153&r1=44152&r2=44153&view=diff
==============================================================================
--- trunk/res/res_monitor.c (original)
+++ trunk/res/res_monitor.c Mon Oct 2 11:56:15 2006
@@ -575,8 +575,6 @@
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 @@
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;
}
More information about the svn-commits
mailing list