/ Check-in [06b8001a]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Fix an uninitialized variable in the command-line shell.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 06b8001ade62bc59e6ae20f761167a81d85a4272
User & Date: drh 2017-01-22 16:34:35
Context
2017-01-23
07:06
Fix a problem preventing FTS5 from correctly passing the FTS5_TOKENIZE_PREFIX flag to custom tokenizer implementations. check-in: 03c60134 user: dan tags: trunk
2017-01-22
16:34
Fix an uninitialized variable in the command-line shell. check-in: 06b8001a user: drh tags: trunk
02:04
Fixes to documentation comments in the public header file. check-in: 772dcb08 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  5293   5293     if( c=='v' && strncmp(azArg[0], "version", n)==0 ){
  5294   5294       utf8_printf(p->out, "SQLite %s %s\n" /*extra-version-info*/,
  5295   5295           sqlite3_libversion(), sqlite3_sourceid());
  5296   5296     }else
  5297   5297   
  5298   5298     if( c=='v' && strncmp(azArg[0], "vfsinfo", n)==0 ){
  5299   5299       const char *zDbName = nArg==2 ? azArg[1] : "main";
  5300         -    sqlite3_vfs *pVfs;
         5300  +    sqlite3_vfs *pVfs = 0;
  5301   5301       if( p->db ){
  5302   5302         sqlite3_file_control(p->db, zDbName, SQLITE_FCNTL_VFS_POINTER, &pVfs);
  5303   5303         if( pVfs ){
  5304   5304           utf8_printf(p->out, "vfs.zName      = \"%s\"\n", pVfs->zName);
  5305   5305           raw_printf(p->out, "vfs.iVersion   = %d\n", pVfs->iVersion);
  5306   5306           raw_printf(p->out, "vfs.szOsFile   = %d\n", pVfs->szOsFile);
  5307   5307           raw_printf(p->out, "vfs.mxPathname = %d\n", pVfs->mxPathname);