Fossil SCM

Remove redundant assignment of the xCmp local variable in the add_files_in_sfile function.

mistachkin 2011-08-05 19:14 trunk
Commit cad1b4a4348527ba016b54b39408c4442f8f414a
1 file changed -1
-1
--- src/add.c
+++ src/add.c
@@ -149,11 +149,10 @@
149149
db_multi_exec(
150150
"CREATE INDEX IF NOT EXISTS vfile_nocase"
151151
" ON vfile(pathname COLLATE nocase)"
152152
);
153153
}
154
- xCmp = caseSensitive ? fossil_strcmp : fossil_stricmp;
155154
db_prepare(&loop, "SELECT x FROM sfile ORDER BY x");
156155
while( db_step(&loop)==SQLITE_ROW ){
157156
const char *zToAdd = db_column_text(&loop, 0);
158157
if( fossil_strcmp(zToAdd, zRepo)==0 ) continue;
159158
for(i=0; (zReserved = fossil_reserved_name(i))!=0; i++){
160159
--- src/add.c
+++ src/add.c
@@ -149,11 +149,10 @@
149 db_multi_exec(
150 "CREATE INDEX IF NOT EXISTS vfile_nocase"
151 " ON vfile(pathname COLLATE nocase)"
152 );
153 }
154 xCmp = caseSensitive ? fossil_strcmp : fossil_stricmp;
155 db_prepare(&loop, "SELECT x FROM sfile ORDER BY x");
156 while( db_step(&loop)==SQLITE_ROW ){
157 const char *zToAdd = db_column_text(&loop, 0);
158 if( fossil_strcmp(zToAdd, zRepo)==0 ) continue;
159 for(i=0; (zReserved = fossil_reserved_name(i))!=0; i++){
160
--- src/add.c
+++ src/add.c
@@ -149,11 +149,10 @@
149 db_multi_exec(
150 "CREATE INDEX IF NOT EXISTS vfile_nocase"
151 " ON vfile(pathname COLLATE nocase)"
152 );
153 }
 
154 db_prepare(&loop, "SELECT x FROM sfile ORDER BY x");
155 while( db_step(&loop)==SQLITE_ROW ){
156 const char *zToAdd = db_column_text(&loop, 0);
157 if( fossil_strcmp(zToAdd, zRepo)==0 ) continue;
158 for(i=0; (zReserved = fossil_reserved_name(i))!=0; i++){
159

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button