Fossil SCM
Fix an out-of-order variable declaration.
Commit
77dc754b9848b1e79e71dc5834a15e10c259b628
Parent
897dfa48b4e28b3…
1 file changed
+1
-1
+1
-1
| --- src/wikiformat.c | ||
| +++ src/wikiformat.c | ||
| @@ -1150,13 +1150,13 @@ | ||
| 1150 | 1150 | char *zClose, /* Write hyperlink closing text here */ |
| 1151 | 1151 | int nClose, /* Bytes available in zClose[] */ |
| 1152 | 1152 | const char *zOrig /* Complete document text */ |
| 1153 | 1153 | ){ |
| 1154 | 1154 | const char *zTerm = "</a>"; |
| 1155 | - assert( nClose>=20 ); | |
| 1156 | 1155 | const char *z; |
| 1157 | 1156 | |
| 1157 | + assert( nClose>=20 ); | |
| 1158 | 1158 | if( strncmp(zTarget, "http:", 5)==0 |
| 1159 | 1159 | || strncmp(zTarget, "https:", 6)==0 |
| 1160 | 1160 | || strncmp(zTarget, "ftp:", 4)==0 |
| 1161 | 1161 | || strncmp(zTarget, "mailto:", 7)==0 |
| 1162 | 1162 | ){ |
| 1163 | 1163 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -1150,13 +1150,13 @@ | |
| 1150 | char *zClose, /* Write hyperlink closing text here */ |
| 1151 | int nClose, /* Bytes available in zClose[] */ |
| 1152 | const char *zOrig /* Complete document text */ |
| 1153 | ){ |
| 1154 | const char *zTerm = "</a>"; |
| 1155 | assert( nClose>=20 ); |
| 1156 | const char *z; |
| 1157 | |
| 1158 | if( strncmp(zTarget, "http:", 5)==0 |
| 1159 | || strncmp(zTarget, "https:", 6)==0 |
| 1160 | || strncmp(zTarget, "ftp:", 4)==0 |
| 1161 | || strncmp(zTarget, "mailto:", 7)==0 |
| 1162 | ){ |
| 1163 |
| --- src/wikiformat.c | |
| +++ src/wikiformat.c | |
| @@ -1150,13 +1150,13 @@ | |
| 1150 | char *zClose, /* Write hyperlink closing text here */ |
| 1151 | int nClose, /* Bytes available in zClose[] */ |
| 1152 | const char *zOrig /* Complete document text */ |
| 1153 | ){ |
| 1154 | const char *zTerm = "</a>"; |
| 1155 | const char *z; |
| 1156 | |
| 1157 | assert( nClose>=20 ); |
| 1158 | if( strncmp(zTarget, "http:", 5)==0 |
| 1159 | || strncmp(zTarget, "https:", 6)==0 |
| 1160 | || strncmp(zTarget, "ftp:", 4)==0 |
| 1161 | || strncmp(zTarget, "mailto:", 7)==0 |
| 1162 | ){ |
| 1163 |