/ Check-in [745deab8]
Login

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

Overview
Comment:Fix a bug in fuzzershell caused by an uninitialized local variable.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 745deab87adc378a5376aaa9451fb9485bc2f4c4
User & Date: drh 2015-05-22 23:45:56
Context
2015-05-22
23:50
Improved error messages in fuzzershell when unable to open the database. check-in: c404fcac user: drh tags: trunk
23:45
Fix a bug in fuzzershell caused by an uninitialized local variable. check-in: 745deab8 user: drh tags: trunk
23:39
Fix another bad assert() in btree - one that can be false on a corrupt database file. check-in: 89f0bbfd user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/fuzzershell.c.

   450    450     const char *zFailCode;        /* Value of the TEST_FAILURE environment var */
   451    451     const char *zPrompt;          /* Initial prompt when large-file fuzzing */
   452    452     int nInFile = 0;              /* Number of input files to read */
   453    453     char **azInFile = 0;          /* Array of input file names */
   454    454     int jj;                       /* Loop counter for azInFile[] */
   455    455     sqlite3_int64 iBegin;         /* Start time for the whole program */
   456    456     sqlite3_int64 iStart, iEnd;   /* Start and end-times for a test case */
   457         -  const char *zDbName;          /* Name of an on-disk database file to open */
          457  +  const char *zDbName = 0;      /* Name of an on-disk database file to open */
   458    458   
   459    459     iBegin = timeOfDay();
   460    460     zFailCode = getenv("TEST_FAILURE");
   461    461     g.zArgv0 = argv[0];
   462    462     zPrompt = "<stdin>";
   463    463     for(i=1; i<argc; i++){
   464    464       const char *z = argv[i];