/ Check-in [6b9877fa]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Initialize a variable introduced as part of the fix for [bd484a090c8077] in order to silence a compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 6b9877fa43bf29a9740285f0c40a6e6cf21f8190
User & Date: dan 2011-06-21 15:38:05
Context
2011-06-21
15:54
Give the osLocaltime() function file scope in date.c. check-in: 15774845 user: drh tags: trunk
15:38
Initialize a variable introduced as part of the fix for [bd484a090c8077] in order to silence a compiler warning. check-in: 6b9877fa user: dan tags: trunk
15:27
Add a missing initializer for sqlite3GlobalConfig.bLocaltimeFault. check-in: 7fe8ba2e user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/date.c.

   464    464     DateTime *p,                    /* Date at which to calculate offset */
   465    465     sqlite3_context *pCtx,          /* Write error here if one occurs */
   466    466     int *pRc                        /* OUT: Error code. SQLITE_OK or ERROR */
   467    467   ){
   468    468     DateTime x, y;
   469    469     time_t t;
   470    470     struct tm sLocal;
          471  +
          472  +  /* Initialize the contents of sLocal to avoid a compiler warning. */
          473  +  memset(&sLocal, 0, sizeof(sLocal));
   471    474   
   472    475     x = *p;
   473    476     computeYMD_HMS(&x);
   474    477     if( x.Y<1971 || x.Y>=2038 ){
   475    478       x.Y = 2000;
   476    479       x.M = 1;
   477    480       x.D = 1;