Fossil SCM
Mis-declared C var fix.
Commit
d7d231c9337741d93dd0fad566c9308d5cfc0286b657aeb208b02a1ebbe28301
Parent
9edf5e7dd68f85c…
1 file changed
+1
-1
+1
-1
| --- src/ajax.c | ||
| +++ src/ajax.c | ||
| @@ -170,11 +170,11 @@ | ||
| 170 | 170 | ** Uses P(zKey) to fetch a CGI environment variable. If that var is |
| 171 | 171 | ** NULL or starts with '0' or 'f' then this function returns false, |
| 172 | 172 | ** else it returns true. |
| 173 | 173 | */ |
| 174 | 174 | int ajax_p_bool(char const *zKey){ |
| 175 | - const * zVal = P(zKey); | |
| 175 | + const char * zVal = P(zKey); | |
| 176 | 176 | return (!zVal || '0'==*zVal || 'f'==*zVal) ? 0 : 1; |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | /* |
| 180 | 180 | ** Helper for /ajax routes. Clears the CGI content buffer, sets an |
| 181 | 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 * 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 |