Fossil SCM
Relocate a declaration to cope with C89 rules.
Commit
87955d92741f8f0dd6e5e511def72a09bc459e3187c70645a98c689c5d6e8b68
Parent
53754fff0c2707f…
1 file changed
+1
-1
+1
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -2015,15 +2015,15 @@ | ||
| 2015 | 2015 | @ <h1>Server Configuration Error</h1> |
| 2016 | 2016 | @ <p>The database schema on the server is out-of-date. Please ask |
| 2017 | 2017 | @ the administrator to run <b>fossil rebuild</b>.</p> |
| 2018 | 2018 | } |
| 2019 | 2019 | }else{ |
| 2020 | + static int jsonOnce = 0; | |
| 2020 | 2021 | if(0==(CMDFLAG_LDAVG_EXEMPT & pCmd->eCmdFlags)){ |
| 2021 | 2022 | load_control(); |
| 2022 | 2023 | } |
| 2023 | 2024 | #ifdef FOSSIL_ENABLE_JSON |
| 2024 | - static int jsonOnce = 0; | |
| 2025 | 2025 | if( jsonOnce==0 && g.json.isJsonMode!=0 ){ |
| 2026 | 2026 | assert(json_is_bootstrapped_early()); |
| 2027 | 2027 | json_bootstrap_late(); |
| 2028 | 2028 | jsonOnce = 1; |
| 2029 | 2029 | } |
| 2030 | 2030 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2015,15 +2015,15 @@ | |
| 2015 | @ <h1>Server Configuration Error</h1> |
| 2016 | @ <p>The database schema on the server is out-of-date. Please ask |
| 2017 | @ the administrator to run <b>fossil rebuild</b>.</p> |
| 2018 | } |
| 2019 | }else{ |
| 2020 | if(0==(CMDFLAG_LDAVG_EXEMPT & pCmd->eCmdFlags)){ |
| 2021 | load_control(); |
| 2022 | } |
| 2023 | #ifdef FOSSIL_ENABLE_JSON |
| 2024 | static int jsonOnce = 0; |
| 2025 | if( jsonOnce==0 && g.json.isJsonMode!=0 ){ |
| 2026 | assert(json_is_bootstrapped_early()); |
| 2027 | json_bootstrap_late(); |
| 2028 | jsonOnce = 1; |
| 2029 | } |
| 2030 |
| --- src/main.c | |
| +++ src/main.c | |
| @@ -2015,15 +2015,15 @@ | |
| 2015 | @ <h1>Server Configuration Error</h1> |
| 2016 | @ <p>The database schema on the server is out-of-date. Please ask |
| 2017 | @ the administrator to run <b>fossil rebuild</b>.</p> |
| 2018 | } |
| 2019 | }else{ |
| 2020 | static int jsonOnce = 0; |
| 2021 | if(0==(CMDFLAG_LDAVG_EXEMPT & pCmd->eCmdFlags)){ |
| 2022 | load_control(); |
| 2023 | } |
| 2024 | #ifdef FOSSIL_ENABLE_JSON |
| 2025 | if( jsonOnce==0 && g.json.isJsonMode!=0 ){ |
| 2026 | assert(json_is_bootstrapped_early()); |
| 2027 | json_bootstrap_late(); |
| 2028 | jsonOnce = 1; |
| 2029 | } |
| 2030 |