Fossil SCM

Fix an out-of-order variable declaration.

drh 2012-11-25 17:05 trunk
Commit 77dc754b9848b1e79e71dc5834a15e10c259b628
1 file changed +1 -1
--- src/wikiformat.c
+++ src/wikiformat.c
@@ -1150,13 +1150,13 @@
11501150
char *zClose, /* Write hyperlink closing text here */
11511151
int nClose, /* Bytes available in zClose[] */
11521152
const char *zOrig /* Complete document text */
11531153
){
11541154
const char *zTerm = "</a>";
1155
- assert( nClose>=20 );
11561155
const char *z;
11571156
1157
+ assert( nClose>=20 );
11581158
if( strncmp(zTarget, "http:", 5)==0
11591159
|| strncmp(zTarget, "https:", 6)==0
11601160
|| strncmp(zTarget, "ftp:", 4)==0
11611161
|| strncmp(zTarget, "mailto:", 7)==0
11621162
){
11631163
--- 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

Keyboard Shortcuts

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