Overview
SHA1 Hash: | 5b58559c0c35cd87d9f15f18a15a20b014319bdb |
---|---|
Date: | 2007-07-31 20:53:10 |
User: | drh |
Comment: | Bug fix in the mlink table builder. Use the "rebuild" method to correct the problem in preexisting repositories. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/manifest.c from [d81c52a268] to [3aad9c8de5].
@@ -258,11 +258,11 @@ content_get(cid, &otherContent); } if( blob_size(&otherContent)==0 ) return; if( manifest_parse(&other, &otherContent)==0 ) return; content_deltify(pid, cid, 0); - for(i=j=0; pParent->nFile<i && pChild->nFile<j; ){ + for(i=j=0; i<pParent->nFile && j<pChild->nFile; ){ int c = strcmp(pParent->aFile[i].zName, pChild->aFile[j].zName); if( c<0 ){ add_one_mlink(cid, pParent->aFile[i].zUuid, 0, pParent->aFile[i].zName); i++; }else if( c>0 ){