[asterisk-commits] tilghman: trunk r51353 - /trunk/main/pbx.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Jan 20 20:25:58 MST 2007
Author: tilghman
Date: Sat Jan 20 21:25:57 2007
New Revision: 51353
URL: http://svn.digium.com/view/asterisk?view=rev&rev=51353
Log:
Fix bug introduced during constification (reported by tzanger via IRC)
Modified:
trunk/main/pbx.c
Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=51353&r1=51352&r2=51353
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Sat Jan 20 21:25:57 2007
@@ -1415,11 +1415,11 @@
struct ast_custom_function *acfptr = ast_custom_function_find(copy);
if (acfptr == NULL)
- ast_log(LOG_ERROR, "Function %s not registered\n", function);
+ ast_log(LOG_ERROR, "Function %s not registered\n", copy);
else if (!acfptr->read)
- ast_log(LOG_ERROR, "Function %s cannot be read\n", function);
+ ast_log(LOG_ERROR, "Function %s cannot be read\n", copy);
else
- return acfptr->read(chan, function, args, workspace, len);
+ return acfptr->read(chan, copy, args, workspace, len);
return -1;
}
@@ -1430,11 +1430,11 @@
struct ast_custom_function *acfptr = ast_custom_function_find(copy);
if (acfptr == NULL)
- ast_log(LOG_ERROR, "Function %s not registered\n", function);
+ ast_log(LOG_ERROR, "Function %s not registered\n", copy);
else if (!acfptr->write)
- ast_log(LOG_ERROR, "Function %s cannot be written to\n", function);
+ ast_log(LOG_ERROR, "Function %s cannot be written to\n", copy);
else
- return acfptr->write(chan, function, args, value);
+ return acfptr->write(chan, copy, args, value);
return -1;
}
More information about the asterisk-commits
mailing list