summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/sqlite3/sqlite3.c
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/sqlite3/sqlite3.c')
-rw-r--r--3rdparty/sqlite3/sqlite3.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/3rdparty/sqlite3/sqlite3.c b/3rdparty/sqlite3/sqlite3.c
index eee15296b9d..04ab891c633 100644
--- a/3rdparty/sqlite3/sqlite3.c
+++ b/3rdparty/sqlite3/sqlite3.c
@@ -72821,6 +72821,9 @@ case OP_Found: { /* jump, in3 */
UnpackedRecord r;
char aTempRec[ROUND8(sizeof(UnpackedRecord)) + sizeof(Mem)*4 + 7];
+ // MAME: fixed Visual Studio warning about potentially uninitialized variable with optimizations enabled
+ memset(&r, 0x00, sizeof(UnpackedRecord));
+
#ifdef SQLITE_TEST
if( pOp->opcode!=OP_NoConflict ) sqlite3_found_count++;
#endif
@@ -93564,8 +93567,10 @@ SQLITE_PRIVATE void sqlite3DeleteFrom(
WhereInfo *pWInfo; /* Information about the WHERE clause */
Index *pIdx; /* For looping over indices of the table */
int iTabCur; /* Cursor number for the table */
- int iDataCur; /* VDBE cursor for the canonical data source */
- int iIdxCur; /* Cursor number of the first index */
+ // MAME: fixed Visual Studio warning about potentially uninitialized variable with optimizations enabled
+ int iDataCur = 0; /* VDBE cursor for the canonical data source */
+ // MAME: fixed Visual Studio warning about potentially uninitialized variable with optimizations enabled
+ int iIdxCur = 0; /* Cursor number of the first index */
int nIdx; /* Number of indices */
sqlite3 *db; /* Main database structure */
AuthContext sContext; /* Authorization context */