1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Fix an uninitialized value read in sqlite3async.c.

FossilOrigin-Name: 1cf2136c39239a6fea6ac2a555f55865dd517d93
This commit is contained in:
dan
2009-12-02 18:16:56 +00:00
parent 614d265038
commit 19125aaf68
3 changed files with 9 additions and 19 deletions

View File

@ -1231,8 +1231,8 @@ static int asyncFullPathname(
*/
if( rc==SQLITE_OK ){
int i, j;
int n = nPathOut;
char *z = zPathOut;
int n = strlen(z);
while( n>1 && z[n-1]=='/' ){ n--; }
for(i=j=0; i<n; i++){
if( z[i]=='/' ){