Fossil

Artifact [201198a8]
Login

Artifact [201198a8]

Artifact 201198a89aa19c7d56b56c9d8c3a0907566902a2:

Attachment "src-vfile.c.patch" to ticket [d7169e51] added by anonymous 2011-02-16 18:53:13.
--- src/vfile.c
+++ src/vfile.c
@@ -310,12 +310,12 @@
       }else if( file_isfile(zPath) && !db_exists(zSql, &zPath[nPrefix+1]) ){
         db_multi_exec("INSERT INTO sfile VALUES(%Q)", &zPath[nPrefix+1]);
       }
       blob_resize(pPath, origSize);
     }
+    closedir(d);
   }
-  closedir(d);
 }
 
 /*
 ** Compute an aggregate MD5 checksum over the disk image of every
 ** file in vid.  The file names are part of the checksum.  The resulting