/ Check-in [1ed5e361]
Login

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

Overview
Comment:In the shell, make sure the ".log" command has at least one argument.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1ed5e361ca7bfa9226fec265704394e0f228f0c5
User & Date: drh 2011-03-23 11:16:22
Context
2011-03-23
17:10
Fix a bug in fts4 to do with matchinfo and deferred tokens. check-in: 30d42dc6 user: dan tags: trunk
11:16
In the shell, make sure the ".log" command has at least one argument. check-in: 1ed5e361 user: drh tags: trunk
10:52
Fix a numbering issue in rtree6.test. Add a couple of extra tests. check-in: 0b7668a7 user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  1847   1847         fprintf(stderr, "Error: %s\n", zErrMsg);
  1848   1848         sqlite3_free(zErrMsg);
  1849   1849         rc = 1;
  1850   1850       }
  1851   1851     }else
  1852   1852   #endif
  1853   1853   
  1854         -  if( c=='l' && strncmp(azArg[0], "log", n)==0 && nArg>=1 ){
         1854  +  if( c=='l' && strncmp(azArg[0], "log", n)==0 && nArg>=2 ){
  1855   1855       const char *zFile = azArg[1];
  1856   1856       if( p->pLog && p->pLog!=stdout && p->pLog!=stderr ){
  1857   1857         fclose(p->pLog);
  1858   1858         p->pLog = 0;
  1859   1859       }
  1860   1860       if( strcmp(zFile,"stdout")==0 ){
  1861   1861         p->pLog = stdout;