[asterisk-commits] oej: branch oej/sip-callpickup-1.2 r73664 - /team/oej/sip-callpickup-1.2/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 6 04:19:46 CDT 2007
Author: oej
Date: Fri Jul 6 04:19:46 2007
New Revision: 73664
URL: http://svn.digium.com/view/asterisk?view=rev&rev=73664
Log:
Oops
Modified:
team/oej/sip-callpickup-1.2/devicestate.c
Modified: team/oej/sip-callpickup-1.2/devicestate.c
URL: http://svn.digium.com/view/asterisk/team/oej/sip-callpickup-1.2/devicestate.c?view=diff&rev=73664&r1=73663&r2=73664
==============================================================================
--- team/oej/sip-callpickup-1.2/devicestate.c (original)
+++ team/oej/sip-callpickup-1.2/devicestate.c Fri Jul 6 04:19:46 2007
@@ -209,7 +209,7 @@
ast_log(LOG_DEBUG, "=== Device state change for %s (channel %s)\n", device, channel ? channel : "<none>");
if (change_thread != AST_PTHREADT_NULL)
- change = calloc(1, sizeof(*change) + strlen(device) + strlen(channel));
+ change = calloc(1, sizeof(*change) + strlen(device) + (channel ? strlen(channel) : 0));
if (!change) {
/* we could not allocate a change struct, or */
More information about the asterisk-commits
mailing list