Fossil SCM

Fixed a wrong-column use in load_vfile_from_rid(), which caused an is-a-phantom check to always eval to false, even for phantoms. This has 'probably' never been triggered before.

stephan 2013-09-02 19:20 trunk
Commit 612e0ecc2500e966742dc4b755d4a00ac8380710
1 file changed +1 -1
+1 -1
--- src/vfile.c
+++ src/vfile.c
@@ -97,11 +97,11 @@
9797
while( (pFile = manifest_file_next(p,0))!=0 ){
9898
if( pFile->zUuid==0 || uuid_is_shunned(pFile->zUuid) ) continue;
9999
db_bind_text(&ridq, ":uuid", pFile->zUuid);
100100
if( db_step(&ridq)==SQLITE_ROW ){
101101
rid = db_column_int(&ridq, 0);
102
- size = db_column_int(&ridq, 0);
102
+ size = db_column_int(&ridq, 1);
103103
}else{
104104
rid = 0;
105105
size = 0;
106106
}
107107
db_reset(&ridq);
108108
--- src/vfile.c
+++ src/vfile.c
@@ -97,11 +97,11 @@
97 while( (pFile = manifest_file_next(p,0))!=0 ){
98 if( pFile->zUuid==0 || uuid_is_shunned(pFile->zUuid) ) continue;
99 db_bind_text(&ridq, ":uuid", pFile->zUuid);
100 if( db_step(&ridq)==SQLITE_ROW ){
101 rid = db_column_int(&ridq, 0);
102 size = db_column_int(&ridq, 0);
103 }else{
104 rid = 0;
105 size = 0;
106 }
107 db_reset(&ridq);
108
--- src/vfile.c
+++ src/vfile.c
@@ -97,11 +97,11 @@
97 while( (pFile = manifest_file_next(p,0))!=0 ){
98 if( pFile->zUuid==0 || uuid_is_shunned(pFile->zUuid) ) continue;
99 db_bind_text(&ridq, ":uuid", pFile->zUuid);
100 if( db_step(&ridq)==SQLITE_ROW ){
101 rid = db_column_int(&ridq, 0);
102 size = db_column_int(&ridq, 1);
103 }else{
104 rid = 0;
105 size = 0;
106 }
107 db_reset(&ridq);
108

Keyboard Shortcuts

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