aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-11-16 03:13:40 +0000
committerdrh <drh@noemail.net>2009-11-16 03:13:40 +0000
commitd93a8b276d43cec863c0cc6790996925a6dc0ca4 (patch)
tree9f343e12316abc2c42d49cd37b19607c40a0a113 /src
parent8b249a886d6933ad07f8a6e757245e48fabaa118 (diff)
downloadsqlite-d93a8b276d43cec863c0cc6790996925a6dc0ca4.tar.gz
sqlite-d93a8b276d43cec863c0cc6790996925a6dc0ca4.zip
Additional optimizations in sqlite3VdbeRecordCompare().
FossilOrigin-Name: 23ea2b700fd6d28d3b13663d164faba3760c572e
Diffstat (limited to 'src')
-rw-r--r--src/vdbeaux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index e8142f905..09542dfa0 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -2786,9 +2786,9 @@ int sqlite3VdbeRecordCompare(
pKeyInfo = pPKey2->pKeyInfo;
mem1.enc = pKeyInfo->enc;
- mem1.db = pKeyInfo->db;
- mem1.flags = 0;
- VVA_ONLY( mem1.zMalloc = 0; ) /* Only used by assert() statements */
+ mem1.db = 0;
+ /* mem1.flags = 0; // Will be initialized by sqlite3VdbeSerialGet() */
+ VVA_ONLY( mem1.zMalloc = 0; ) /* Only needed by assert() statements */
/* Compilers may complain that mem1.u.i is potentially uninitialized.
** We could initialize it, as shown here, to silence those complaints.