aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_rpt.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-25 20:51:47 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-25 20:51:47 +0000
commitac73a306cadbda581dfd609cb3371490a174a477 (patch)
tree52995f2832037f8888b160639541ff8734c823a4 /apps/app_rpt.c
parent8e5083942e83f1de0e92deb4c93f6bd8ba870921 (diff)
correct a real problem and silence an annoying compiler warning
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@100361 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_rpt.c')
-rw-r--r--apps/app_rpt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_rpt.c b/apps/app_rpt.c
index ae8f4ecea..6eb0bfca8 100644
--- a/apps/app_rpt.c
+++ b/apps/app_rpt.c
@@ -2675,7 +2675,7 @@ static void *rpt_call(void *this)
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 @@ static int function_remote(struct rpt *myrpt, char *param, char *digitbuf, int c
{
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] = "";