Skip to content

Commit

Permalink
Move a local variable declaration into the outermost scope in which it
Browse files Browse the repository at this point in the history
is used. This fixes an ASAN warning.
  • Loading branch information
D. Richard Hipp committed Jan 13, 2019
1 parent 95a3db8 commit 57894e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,7 @@ static int renameResolveTrigger(Parse *pParse, const char *zDb){
Trigger *pNew = pParse->pNewTrigger;
TriggerStep *pStep;
NameContext sNC;
SrcList sSrc;
int rc = SQLITE_OK;

memset(&sNC, 0, sizeof(sNC));
Expand Down Expand Up @@ -1111,7 +1112,6 @@ static int renameResolveTrigger(Parse *pParse, const char *zDb){
if( pTarget==0 ){
rc = SQLITE_ERROR;
}else if( SQLITE_OK==(rc = sqlite3ViewGetColumnNames(pParse, pTarget)) ){
SrcList sSrc;
memset(&sSrc, 0, sizeof(sSrc));
sSrc.nSrc = 1;
sSrc.a[0].zName = pStep->zTarget;
Expand Down

0 comments on commit 57894e7

Please sign in to comment.