diff options
author | drh <drh@noemail.net> | 2013-12-03 19:16:06 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-12-03 19:16:06 +0000 |
commit | 7190e07fc024aa1e97ed5b4a61011a35b77053fa (patch) | |
tree | 61c21e00b5299737b3e45ef61d8493fe3d6af276 /src | |
parent | b5f68b0c8c0adb278e0cb9d1655d7855a5717776 (diff) | |
download | sqlite-7190e07fc024aa1e97ed5b4a61011a35b77053fa.tar.gz sqlite-7190e07fc024aa1e97ed5b4a61011a35b77053fa.zip |
Fix a possible (and probably harmless) uninitialized variable in STAT3/4.
FossilOrigin-Name: 33ad4f91477907b7b3e5808c7ba11aacc9a83ba6
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbemem.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/vdbemem.c b/src/vdbemem.c index 670691c07..51f20d4cc 100644 --- a/src/vdbemem.c +++ b/src/vdbemem.c @@ -1297,7 +1297,6 @@ int sqlite3Stat4ProbeSetValue( pVal = valueNew(db, &alloc); if( pVal ){ sqlite3VdbeMemSetNull((Mem*)pVal); - *pbOk = 1; } }else if( pExpr->op==TK_VARIABLE || NEVER(pExpr->op==TK_REGISTER && pExpr->op2==TK_VARIABLE) @@ -1313,16 +1312,13 @@ int sqlite3Stat4ProbeSetValue( sqlite3ValueApplyAffinity(pVal, affinity, ENC(db)); } pVal->db = pParse->db; - *pbOk = 1; sqlite3VdbeMemStoreType((Mem*)pVal); } - }else{ - *pbOk = 0; } }else{ rc = valueFromExpr(db, pExpr, ENC(db), affinity, &pVal, &alloc); - *pbOk = (pVal!=0); } + *pbOk = (pVal!=0); assert( pVal==0 || pVal->db==db ); return rc; |