]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Initialize variable pKeyDup in multiSelectOrderBy(). Technically it doesn't need...
authordanielk1977 <danielk1977@noemail.net>
Tue, 16 Sep 2008 15:55:55 +0000 (15:55 +0000)
committerdanielk1977 <danielk1977@noemail.net>
Tue, 16 Sep 2008 15:55:55 +0000 (15:55 +0000)
FossilOrigin-Name: bd58be6ecf0a22f3c8404bd7094ab5e13e19b1c4

manifest
manifest.uuid
src/select.c

index a8956feeddc50625bbf7c41b7cc54c2b3fd6510a..19d5840b3aeddb11f83f74651c7125c65736948e 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Use\s(file\snativename\s(pwd))\sinstead\sof\sjust\s(pwd)\sto\sfind\sthe\sname\sof\sthe\scurrent\sdirectory\sto\spass\sto\s"PRAGMA\stemp_store_directory"\sin\spragma.test.\sThis\shelps\sthe\stest\spass\son\snon-unix\ssystems.\s(CVS\s5709)
-D 2008-09-16T15:50:12
+C Initialize\svariable\spKeyDup\sin\smultiSelectOrderBy().\sTechnically\sit\sdoesn't\sneed\sto\sbe\sinitialized,\sbut\sthe\sreasoning\srequired\sto\scome\sto\sthat\sconclusion\sis\stoo\scomplicated\sfor\ssome\sautomated\ssystems.\sSo\sit\sis\sinitialized\sto\skeep\ssome\scompilers\shappy.\sTicket\s#3382.\s(CVS\s5710)
+D 2008-09-16T15:55:56
 F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
 F Makefile.in d15a7ebfe5e057a72a49805ffb302dbb601c8329
 F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@@ -147,7 +147,7 @@ F src/prepare.c c7e00ed1b0bdcf699b1aad651247d4dc3d281b0b
 F src/printf.c 785f87120589c1db672e37c6eb1087c456e6f84d
 F src/random.c 11bbdf7def3746a762fbdb56c9d04648135ad6d8
 F src/resolve.c a6abf83125bce0c80ba04acc27c3565155ad305c
-F src/select.c b4bc2536228769093ad0d110f40143a322009abb
+F src/select.c 9cf9aac53aae65ce519310fd86ea3d895a654d79
 F src/shell.c d83b578a8ccdd3e0e7fef4388a0887ce9f810967
 F src/sqlite.h.in 81dc1e8e50fb5c7cccf0a67a34cb796efc1d2a1e
 F src/sqlite3ext.h 1e3887c9bd3ae66cb599e922824b04cd0d0f2c3e
@@ -637,7 +637,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
 F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
 F tool/speedtest8.c 1dbced29de5f59ba2ebf877edcadf171540374d1
 F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
-P 3847faff55d4bd7574785c3b18d5c95e687c7598
-R 16670c73dbd43d240ea75630e41f8efe
+P 50feaa3707f4f61202bc855802ab2e405365d801
+R 4a936eb29e45588fe381195159200956
 U danielk1977
-Z 41ee678a15fcc38b7474c6adcc1f7073
+Z 7c553474e27fde482ebe5fefe5f1afc5
index 485507b6d5d877f3a5eafe13811d7daff2dd0532..bfd1e71926c0df54d61c2da45a5aac65494841a9 100644 (file)
@@ -1 +1 @@
-50feaa3707f4f61202bc855802ab2e405365d801
\ No newline at end of file
+bd58be6ecf0a22f3c8404bd7094ab5e13e19b1c4
\ No newline at end of file
index e9d0abdcd4e1c98e07a8bfa6ef049a36ce02ee14..c3442a2cd2efa482d28cdd68942d6b60d6cc8161 100644 (file)
@@ -12,7 +12,7 @@
 ** This file contains C code routines that are called by the parser
 ** to handle SELECT statements in SQLite.
 **
-** $Id: select.c,v 1.473 2008/09/13 01:20:15 drh Exp $
+** $Id: select.c,v 1.474 2008/09/16 15:55:56 danielk1977 Exp $
 */
 #include "sqliteInt.h"
 
@@ -2047,7 +2047,7 @@ static int multiSelectOrderBy(
   int labelEnd;         /* Label for the end of the overall SELECT stmt */
   int j1;               /* Jump instructions that get retargetted */
   int op;               /* One of TK_ALL, TK_UNION, TK_EXCEPT, TK_INTERSECT */
-  KeyInfo *pKeyDup;     /* Comparison information for duplicate removal */
+  KeyInfo *pKeyDup = 0; /* Comparison information for duplicate removal */
   KeyInfo *pKeyMerge;   /* Comparison information for merging rows */
   sqlite3 *db;          /* Database connection */
   ExprList *pOrderBy;   /* The ORDER BY clause */