1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Move a local variable declaration into the outermost scope in which it

is used. This fixes an ASAN warning.

FossilOrigin-Name: ac3b6021d9437ab1c027850d321f0a3e575b008763d8d515e2347f7d4e7c294b
This commit is contained in:
drh
2019-01-13 00:58:57 +00:00
parent a79bcf358b
commit a1bd5c6aae
3 changed files with 8 additions and 8 deletions

View File

@@ -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));
@@ -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;