Fix compiler warning in src-verify.c.

FossilOrigin-Name: 2d58c77448cfaaf12887b60bcfea039d3410a750ac8955a817c45be85c00eb9e
This commit is contained in:
drh 2023-06-05 17:12:33 +00:00
parent 4246a4bf14
commit 25e87ed1ba
3 changed files with 20 additions and 20 deletions

View File

@ -1,5 +1,5 @@
C Update\sthe\sREADME.md\sfile\sto\stalk\sabout\sthe\sverify-source\smakefile\starget.
D 2023-06-05T13:57:37.010
C Fix\scompiler\swarning\sin\ssrc-verify.c.
D 2023-06-05T17:12:33.077
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@ -2040,7 +2040,7 @@ F tool/sqldiff.c 2a693b4e7c1818c23f871f82f0c3fe67d80b67e3f087893089d33da29c1e387
F tool/sqlite3_analyzer.c.in f88615bf33098945e0a42f17733f472083d150b58bdaaa5555a7129d0a51621c
F tool/sqltclsh.c.in 1bcc2e9da58fadf17b0bf6a50e68c1159e602ce057210b655d50bad5aaaef898
F tool/sqltclsh.tcl 862f4cf1418df5e1315b5db3b5ebe88969e2a784525af5fbf9596592f14ed848
F tool/src-verify.c 8991969de8edcee688af869901f0b6aef69abde34a06956207e77674004366cf
F tool/src-verify.c cf3aa5a7dcfae4680b011d9fbc3eafa558367f7e1ad19532684b887aa553a324
F tool/srcck1.c 371de5363b70154012955544f86fdee8f6e5326f
F tool/stack_usage.tcl f8e71b92cdb099a147dad572375595eae55eca43
F tool/stripccomments.c 20b8aabc4694d0d4af5566e42da1f1a03aff057689370326e9269a9ddcffdc37
@ -2073,8 +2073,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
P c9f6e36d59fc8bf2bcef6fc14ff2e9ad3dfd972de94d4a71ff3f56134810a8ef
R e91c88c8e46445d9eca494cc1fdddcf5
P aa8e79e16abf028d50370ae13b6c952a7b7f42985125bc8e7f51b20a10bfc336
R bda07561c201ad16470d8d134cf52380
U drh
Z 3888741ff2c2850220d9e06ebbda1c5d
Z b7e41c600665e7a3d0b0507159b16a5e
# Remove this line to create a well-formed Fossil manifest.

View File

@ -1 +1 @@
aa8e79e16abf028d50370ae13b6c952a7b7f42985125bc8e7f51b20a10bfc336
2d58c77448cfaaf12887b60bcfea039d3410a750ac8955a817c45be85c00eb9e

View File

@ -748,26 +748,26 @@ void sha1sum_file(const char *zFilename, char *zCksum){
** Decode a fossilized string in-place.
*/
void defossilize(char *z){
int i, j, c;
int i, j, cc;
char *zSlash = strchr(z, '\\');
if( zSlash==0 ) return;
i = zSlash - z;
for(j=i; (c=z[i])!=0; i++){
if( c=='\\' && z[i+1] ){
for(j=i; (cc=z[i])!=0; i++){
if( cc=='\\' && z[i+1] ){
i++;
switch( z[i] ){
case 'n': c = '\n'; break;
case 's': c = ' '; break;
case 't': c = '\t'; break;
case 'r': c = '\r'; break;
case 'v': c = '\v'; break;
case 'f': c = '\f'; break;
case '0': c = 0; break;
case '\\': c = '\\'; break;
default: c = z[i]; break;
case 'n': cc = '\n'; break;
case 's': cc = ' '; break;
case 't': cc = '\t'; break;
case 'r': cc = '\r'; break;
case 'v': cc = '\v'; break;
case 'f': cc = '\f'; break;
case '0': cc = 0; break;
case '\\': cc = '\\'; break;
default: cc = z[i]; break;
}
}
z[j++] = c;
z[j++] = cc;
}
if( z[j] ) z[j] = 0;
}