1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Initialize a variable introduced as part of the fix for [bd484a090c8077] in order to silence a compiler warning.

FossilOrigin-Name: 6b9877fa43bf29a9740285f0c40a6e6cf21f8190
This commit is contained in:
dan
2011-06-21 15:38:05 +00:00
parent dec6f79d40
commit 0d37f58184
3 changed files with 10 additions and 7 deletions

View File

@@ -469,6 +469,9 @@ static sqlite3_int64 localtimeOffset(
time_t t;
struct tm sLocal;
/* Initialize the contents of sLocal to avoid a compiler warning. */
memset(&sLocal, 0, sizeof(sLocal));
x = *p;
computeYMD_HMS(&x);
if( x.Y<1971 || x.Y>=2038 ){