Fossil SCM

Mis-declared C var fix.

stephan 2020-07-31 01:11 ajax-wiki-editor
Commit d7d231c9337741d93dd0fad566c9308d5cfc0286b657aeb208b02a1ebbe28301
1 file changed +1 -1
+1 -1
--- src/ajax.c
+++ src/ajax.c
@@ -170,11 +170,11 @@
170170
** Uses P(zKey) to fetch a CGI environment variable. If that var is
171171
** NULL or starts with '0' or 'f' then this function returns false,
172172
** else it returns true.
173173
*/
174174
int ajax_p_bool(char const *zKey){
175
- const * zVal = P(zKey);
175
+ const char * zVal = P(zKey);
176176
return (!zVal || '0'==*zVal || 'f'==*zVal) ? 0 : 1;
177177
}
178178
179179
/*
180180
** Helper for /ajax routes. Clears the CGI content buffer, sets an
181181
--- src/ajax.c
+++ src/ajax.c
@@ -170,11 +170,11 @@
170 ** Uses P(zKey) to fetch a CGI environment variable. If that var is
171 ** NULL or starts with '0' or 'f' then this function returns false,
172 ** else it returns true.
173 */
174 int ajax_p_bool(char const *zKey){
175 const * zVal = P(zKey);
176 return (!zVal || '0'==*zVal || 'f'==*zVal) ? 0 : 1;
177 }
178
179 /*
180 ** Helper for /ajax routes. Clears the CGI content buffer, sets an
181
--- src/ajax.c
+++ src/ajax.c
@@ -170,11 +170,11 @@
170 ** Uses P(zKey) to fetch a CGI environment variable. If that var is
171 ** NULL or starts with '0' or 'f' then this function returns false,
172 ** else it returns true.
173 */
174 int ajax_p_bool(char const *zKey){
175 const char * zVal = P(zKey);
176 return (!zVal || '0'==*zVal || 'f'==*zVal) ? 0 : 1;
177 }
178
179 /*
180 ** Helper for /ajax routes. Clears the CGI content buffer, sets an
181

Keyboard Shortcuts

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