From: Kevin P. Fleming Date: Fri, 25 Jan 2008 20:51:47 +0000 (+0000) Subject: correct a real problem and silence an annoying compiler warning X-Git-Tag: 1.6.0-beta2~2^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6d54b68fa1ce9f854f6233092f0304c405c9c91;p=thirdparty%2Fasterisk.git 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 --- diff --git a/apps/app_rpt.c b/apps/app_rpt.c index ae8f4eceac..6eb0bfca86 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] = "";