Fossil SCM
Fix an out-of-order variable declaration in regexp.c.
Commit
8144cf150809f13d77b37bcf2e4c3d1a475eee47
Parent
ac103f64c37a0fc…
1 file changed
+1
-1
+1
-1
| --- src/regexp.c | ||
| +++ src/regexp.c | ||
| @@ -391,12 +391,12 @@ | ||
| 391 | 391 | int i, v = 0; |
| 392 | 392 | char c; |
| 393 | 393 | if( p->sIn.i>=p->sIn.mx ) return 0; |
| 394 | 394 | c = p->sIn.z[p->sIn.i]; |
| 395 | 395 | if( c=='u' && p->sIn.i+5<p->sIn.mx ){ |
| 396 | - v = 0; | |
| 397 | 396 | const unsigned char *zIn = p->sIn.z + p->sIn.i; |
| 397 | + v = 0; | |
| 398 | 398 | if( re_hex(zIn[1],&v) |
| 399 | 399 | && re_hex(zIn[2],&v) |
| 400 | 400 | && re_hex(zIn[3],&v) |
| 401 | 401 | && re_hex(zIn[4],&v) |
| 402 | 402 | ){ |
| 403 | 403 |
| --- src/regexp.c | |
| +++ src/regexp.c | |
| @@ -391,12 +391,12 @@ | |
| 391 | int i, v = 0; |
| 392 | char c; |
| 393 | if( p->sIn.i>=p->sIn.mx ) return 0; |
| 394 | c = p->sIn.z[p->sIn.i]; |
| 395 | if( c=='u' && p->sIn.i+5<p->sIn.mx ){ |
| 396 | v = 0; |
| 397 | const unsigned char *zIn = p->sIn.z + p->sIn.i; |
| 398 | if( re_hex(zIn[1],&v) |
| 399 | && re_hex(zIn[2],&v) |
| 400 | && re_hex(zIn[3],&v) |
| 401 | && re_hex(zIn[4],&v) |
| 402 | ){ |
| 403 |
| --- src/regexp.c | |
| +++ src/regexp.c | |
| @@ -391,12 +391,12 @@ | |
| 391 | int i, v = 0; |
| 392 | char c; |
| 393 | if( p->sIn.i>=p->sIn.mx ) return 0; |
| 394 | c = p->sIn.z[p->sIn.i]; |
| 395 | if( c=='u' && p->sIn.i+5<p->sIn.mx ){ |
| 396 | const unsigned char *zIn = p->sIn.z + p->sIn.i; |
| 397 | v = 0; |
| 398 | if( re_hex(zIn[1],&v) |
| 399 | && re_hex(zIn[2],&v) |
| 400 | && re_hex(zIn[3],&v) |
| 401 | && re_hex(zIn[4],&v) |
| 402 | ){ |
| 403 |