[svn-commits] rmudgett: branch 1.8 r304554 - /branches/1.8/main/ccss.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jan 27 13:08:18 CST 2011
Author: rmudgett
Date: Thu Jan 27 13:08:14 2011
New Revision: 304554
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=304554
Log:
Warning message if CALLCOMPLETION(cc_callback_macro or cc_agent_dialstring) are empty.
Test if the value pointer is not NULL instead of not ast_strlen_zero().
Modified:
branches/1.8/main/ccss.c
Modified: branches/1.8/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/ccss.c?view=diff&rev=304554&r1=304553&r2=304554
==============================================================================
--- branches/1.8/main/ccss.c (original)
+++ branches/1.8/main/ccss.c Thu Jan 27 13:08:14 2011
@@ -613,6 +613,7 @@
char *buf, size_t buf_len)
{
const char *value = NULL;
+
if (!strcasecmp(name, "cc_callback_macro")) {
value = ast_get_cc_callback_macro(params);
} else if (!strcasecmp(name, "cc_agent_policy")) {
@@ -622,8 +623,7 @@
} else if (!strcasecmp(name, "cc_agent_dialstring")) {
value = ast_get_cc_agent_dialstring(params);
}
-
- if (!ast_strlen_zero(value)) {
+ if (value) {
ast_copy_string(buf, value, buf_len);
return 0;
}
More information about the svn-commits
mailing list