Fossil SCM
Always define variables at block start
Commit
1c9e0233827299e10076dc1e5f2e318fa962cc7c
Parent
79c90ac4a4a098d…
1 file changed
+3
-3
+3
-3
| --- src/info.c | ||
| +++ src/info.c | ||
| @@ -500,10 +500,13 @@ | ||
| 500 | 500 | const char *zName; /* Name of the checkin to be displayed */ |
| 501 | 501 | const char *zUuid; /* UUID of zName */ |
| 502 | 502 | const char *zParent; /* UUID of the parent checkin (if any) */ |
| 503 | 503 | const char *zRe; /* regex parameter */ |
| 504 | 504 | ReCompiled *pRe = 0; /* regex */ |
| 505 | + const char *zW; /* URL param for ignoring whitespace */ | |
| 506 | + const char *zPage = "vinfo"; /* Page that shows diffs */ | |
| 507 | + const char *zPageHide = "ci"; /* Page that hides diffs */ | |
| 505 | 508 | |
| 506 | 509 | login_check_credentials(); |
| 507 | 510 | if( !g.perm.Read ){ login_needed(); return; } |
| 508 | 511 | zName = P("name"); |
| 509 | 512 | rid = name_to_rid_www("name"); |
| @@ -665,13 +668,10 @@ | ||
| 665 | 668 | style_header("Check-in Information"); |
| 666 | 669 | login_anonymous_available(); |
| 667 | 670 | } |
| 668 | 671 | db_finalize(&q1); |
| 669 | 672 | showTags(rid, ""); |
| 670 | - const char *zW; /* URL param for ignoring whitespace */ | |
| 671 | - const char *zPage = "vinfo"; /* Page that shows diffs */ | |
| 672 | - const char *zPageHide = "ci"; /* Page that hides diffs */ | |
| 673 | 673 | @ <div class="section">Changes</div> |
| 674 | 674 | @ <div class="sectionmenu"> |
| 675 | 675 | verboseFlag = g.zPath[0]!='c'; |
| 676 | 676 | if( db_get_boolean("show-version-diffs", 0)==0 ){ |
| 677 | 677 | verboseFlag = !verboseFlag; |
| 678 | 678 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -500,10 +500,13 @@ | |
| 500 | const char *zName; /* Name of the checkin to be displayed */ |
| 501 | const char *zUuid; /* UUID of zName */ |
| 502 | const char *zParent; /* UUID of the parent checkin (if any) */ |
| 503 | const char *zRe; /* regex parameter */ |
| 504 | ReCompiled *pRe = 0; /* regex */ |
| 505 | |
| 506 | login_check_credentials(); |
| 507 | if( !g.perm.Read ){ login_needed(); return; } |
| 508 | zName = P("name"); |
| 509 | rid = name_to_rid_www("name"); |
| @@ -665,13 +668,10 @@ | |
| 665 | style_header("Check-in Information"); |
| 666 | login_anonymous_available(); |
| 667 | } |
| 668 | db_finalize(&q1); |
| 669 | showTags(rid, ""); |
| 670 | const char *zW; /* URL param for ignoring whitespace */ |
| 671 | const char *zPage = "vinfo"; /* Page that shows diffs */ |
| 672 | const char *zPageHide = "ci"; /* Page that hides diffs */ |
| 673 | @ <div class="section">Changes</div> |
| 674 | @ <div class="sectionmenu"> |
| 675 | verboseFlag = g.zPath[0]!='c'; |
| 676 | if( db_get_boolean("show-version-diffs", 0)==0 ){ |
| 677 | verboseFlag = !verboseFlag; |
| 678 |
| --- src/info.c | |
| +++ src/info.c | |
| @@ -500,10 +500,13 @@ | |
| 500 | const char *zName; /* Name of the checkin to be displayed */ |
| 501 | const char *zUuid; /* UUID of zName */ |
| 502 | const char *zParent; /* UUID of the parent checkin (if any) */ |
| 503 | const char *zRe; /* regex parameter */ |
| 504 | ReCompiled *pRe = 0; /* regex */ |
| 505 | const char *zW; /* URL param for ignoring whitespace */ |
| 506 | const char *zPage = "vinfo"; /* Page that shows diffs */ |
| 507 | const char *zPageHide = "ci"; /* Page that hides diffs */ |
| 508 | |
| 509 | login_check_credentials(); |
| 510 | if( !g.perm.Read ){ login_needed(); return; } |
| 511 | zName = P("name"); |
| 512 | rid = name_to_rid_www("name"); |
| @@ -665,13 +668,10 @@ | |
| 668 | style_header("Check-in Information"); |
| 669 | login_anonymous_available(); |
| 670 | } |
| 671 | db_finalize(&q1); |
| 672 | showTags(rid, ""); |
| 673 | @ <div class="section">Changes</div> |
| 674 | @ <div class="sectionmenu"> |
| 675 | verboseFlag = g.zPath[0]!='c'; |
| 676 | if( db_get_boolean("show-version-diffs", 0)==0 ){ |
| 677 | verboseFlag = !verboseFlag; |
| 678 |