[asterisk-commits] kpfleming: trunk r100361 - /trunk/apps/app_rpt.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 25 14:51:48 CST 2008
Author: kpfleming
Date: Fri Jan 25 14:51:47 2008
New Revision: 100361
URL: http://svn.digium.com/view/asterisk?view=rev&rev=100361
Log:
correct a real problem and silence an annoying compiler warning
Modified:
trunk/apps/app_rpt.c
Modified: trunk/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_rpt.c?view=diff&rev=100361&r1=100360&r2=100361
==============================================================================
--- trunk/apps/app_rpt.c (original)
+++ trunk/apps/app_rpt.c Fri Jan 25 14:51:47 2008
@@ -2675,7 +2675,7 @@
ast_copy_string(mychannel->context, myrpt->patchcontext, sizeof(mychannel->context));
if (myrpt->p.acctcode)
- ast_copy_string((char *)mychannel->accountcode, myrpt->p.acctcode, sizeof(mychannel->accountcode));
+ ast_string_field_set(mychannel, accountcode, myrpt->p.acctcode);
mychannel->priority = 1;
ast_channel_undefer_dtmf(mychannel);
if (ast_pbx_start(mychannel) < 0) {
@@ -4637,7 +4637,7 @@
{
char *s, *modestr;
const char *val;
- int i, j, ht, k, l, ls2, res, offset, offsave, modesave, defmode;
+ int i, j, ht, k, l, ls2, res, offset, offsave, modesave, defmode = 0;
char multimode = 0;
char oc;
char tmp[20], freq[20] = "", savestr[20] = "";
More information about the asterisk-commits
mailing list