aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-09-05 18:17:03 +0000
committerdrh <>2022-09-05 18:17:03 +0000
commit6e440ab3dea8494b46432485382d89a96949a65d (patch)
tree644cdb13319004e23473c4205599c108f21f2a60 /src
parentad617b4d6d508486a04b17bf6ac315b1b20aa94f (diff)
downloadsqlite-6e440ab3dea8494b46432485382d89a96949a65d.tar.gz
sqlite-6e440ab3dea8494b46432485382d89a96949a65d.zip
Fix the windows build so that it works with -DSQLITE_OMIT_AUTOINIT.
FossilOrigin-Name: f74a5ea8c986dc33d3afcda169c38abbe55728c56716cf9991a5e2ef7fc4917a
Diffstat (limited to 'src')
-rw-r--r--src/os_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os_win.c b/src/os_win.c
index 4191db6bb..2827b0b49 100644
--- a/src/os_win.c
+++ b/src/os_win.c
@@ -1918,8 +1918,9 @@ int sqlite3_win32_set_directory8(
const char *zValue /* New value for directory being set or reset */
){
char **ppDirectory = 0;
+ int rc;
#ifndef SQLITE_OMIT_AUTOINIT
- int rc = sqlite3_initialize();
+ rc = sqlite3_initialize();
if( rc ) return rc;
#endif
sqlite3_mutex_enter(sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_TEMPDIR));