diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-01-25 20:51:47 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-01-25 20:51:47 +0000 |
commit | e6d54b68fa1ce9f854f6233092f0304c405c9c91 (patch) | |
tree | 52995f2832037f8888b160639541ff8734c823a4 /apps/app_rpt.c | |
parent | 81fb790419bd1f24df4b28dfdc3636abe0d51449 (diff) |
correct a real problem and silence an annoying compiler warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_rpt.c')
-rw-r--r-- | apps/app_rpt.c | 4 |
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] = ""; |