/ Check-in [72570846]
Login

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

Overview
Comment:Fix an out-of-order variable declaration in shell.c.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 725708465072fc63736e99610cc9cb0ac336145a
User & Date: drh 2011-03-15 18:35:44
Context
2011-03-15
19:08
Make the "unix-excl" VFS work exactly like "unix" if the database file is read-only. check-in: d9846834 user: drh tags: trunk
18:35
Fix an out-of-order variable declaration in shell.c. check-in: 72570846 user: drh tags: trunk
02:55
Fix cut-and-paste typo in debugging print statement in winMutexTry(). check-in: def98fd2 user: shaneh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/shell.c.

  2683   2683           if( c=='G' ){ szHeap *= 1000000000; break; }
  2684   2684         }
  2685   2685         if( szHeap>0x7fff0000 ) szHeap = 0x7fff0000;
  2686   2686   #if defined(SQLITE_ENABLE_MEMSYS3) || defined(SQLITE_ENABLE_MEMSYS5)
  2687   2687         sqlite3_config(SQLITE_CONFIG_HEAP, malloc((int)szHeap), (int)szHeap, 64);
  2688   2688   #endif
  2689   2689       }else if( strcmp(argv[i],"-vfs")==0 ){
  2690         -      i++;
  2691         -      sqlite3_vfs *pVfs = sqlite3_vfs_find(argv[i]);
         2690  +      sqlite3_vfs *pVfs = sqlite3_vfs_find(argv[++i]);
  2692   2691         if( pVfs ){
  2693   2692           sqlite3_vfs_register(pVfs, 1);
  2694   2693         }else{
  2695   2694           fprintf(stderr, "no such VFS: \"%s\"\n", argv[i]);
  2696   2695           exit(1);
  2697   2696         }
  2698   2697       }