1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Remove unreachable branches from the 8.3 filename logic.

FossilOrigin-Name: 4f7e7b44f2d17681318a1fd22466d3cc03103fc4
This commit is contained in:
drh
2011-05-18 02:41:10 +00:00
parent cc4e19be9a
commit c83f2d477c
3 changed files with 10 additions and 10 deletions

View File

@@ -1167,8 +1167,8 @@ void sqlite3FileSuffix3(const char *zBaseFilename, char *z){
if( zOk && sqlite3GetBoolean(zOk) ){
int i, sz;
sz = sqlite3Strlen30(z);
for(i=sz-1; i>0 && z[i]!='/' && z[i]!='\\' && z[i]!='.'; i--){}
if( z[i]=='.' && sz>i+4 ) memcpy(&z[i+1], &z[sz-3], 4);
for(i=sz-1; i>0 && z[i]!='/' && z[i]!='.'; i--){}
if( z[i]=='.' && ALWAYS(sz>i+4) ) memcpy(&z[i+1], &z[sz-3], 4);
}
}
#endif