[asterisk-commits] seanbright: trunk r164054 - /trunk/res/snmp/agent.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Dec 13 12:25:59 CST 2008


Author: seanbright
Date: Sat Dec 13 12:25:58 2008
New Revision: 164054

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164054
Log:
Use ast_str_strlen() instead of recalculating the string length.

Modified:
    trunk/res/snmp/agent.c

Modified: trunk/res/snmp/agent.c
URL: http://svn.digium.com/view/asterisk/trunk/res/snmp/agent.c?view=diff&rev=164054&r1=164053&r2=164054
==============================================================================
--- trunk/res/snmp/agent.c (original)
+++ trunk/res/snmp/agent.c Sat Dec 13 12:25:58 2008
@@ -483,7 +483,7 @@
 		break;
 	case ASTCHANVARIABLES:
 		if (pbx_builtin_serialize_variables(chan, &out)) {
-			*var_len = strlen(ast_str_buffer(out));
+			*var_len = ast_str_strlen(out);
 			ret = (u_char *)ast_str_buffer(out);
 		}
 		break;




More information about the asterisk-commits mailing list