Fossil SCM

Relocate a declaration to cope with C89 rules.

danield 2022-04-19 12:46 trunk
Commit 87955d92741f8f0dd6e5e511def72a09bc459e3187c70645a98c689c5d6e8b68
1 file changed +1 -1
+1 -1
--- src/main.c
+++ src/main.c
@@ -2015,15 +2015,15 @@
20152015
@ <h1>Server Configuration Error</h1>
20162016
@ <p>The database schema on the server is out-of-date. Please ask
20172017
@ the administrator to run <b>fossil rebuild</b>.</p>
20182018
}
20192019
}else{
2020
+ static int jsonOnce = 0;
20202021
if(0==(CMDFLAG_LDAVG_EXEMPT & pCmd->eCmdFlags)){
20212022
load_control();
20222023
}
20232024
#ifdef FOSSIL_ENABLE_JSON
2024
- static int jsonOnce = 0;
20252025
if( jsonOnce==0 && g.json.isJsonMode!=0 ){
20262026
assert(json_is_bootstrapped_early());
20272027
json_bootstrap_late();
20282028
jsonOnce = 1;
20292029
}
20302030
--- 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

Keyboard Shortcuts

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