Fossil SCM

Fix an out-of-order variable declaration in regexp.c.

drh 2013-01-04 19:43 trunk
Commit 8144cf150809f13d77b37bcf2e4c3d1a475eee47
1 file changed +1 -1
+1 -1
--- src/regexp.c
+++ src/regexp.c
@@ -391,12 +391,12 @@
391391
int i, v = 0;
392392
char c;
393393
if( p->sIn.i>=p->sIn.mx ) return 0;
394394
c = p->sIn.z[p->sIn.i];
395395
if( c=='u' && p->sIn.i+5<p->sIn.mx ){
396
- v = 0;
397396
const unsigned char *zIn = p->sIn.z + p->sIn.i;
397
+ v = 0;
398398
if( re_hex(zIn[1],&v)
399399
&& re_hex(zIn[2],&v)
400400
&& re_hex(zIn[3],&v)
401401
&& re_hex(zIn[4],&v)
402402
){
403403
--- 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

Keyboard Shortcuts

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