Browse Source

silence warnings from clang ccc-analyzer

personal/stbuehler/mod-csrf
Glenn Strauss 5 years ago
parent
commit
609e9a5050
  1. 2
      src/mod_auth.c
  2. 2
      src/mod_authn_mysql.c
  3. 2
      src/mod_deflate.c
  4. 2
      src/mod_geoip.c

2
src/mod_auth.c

@ -311,7 +311,7 @@ SETDEFAULTS_FUNC(mod_auth_set_defaults) {
return HANDLER_ERROR;
}
{
if (require) { /*(always true at this point)*/
data_auth * const dauth = data_auth_init();
buffer_copy_buffer(dauth->key, da_file->key);
dauth->require->scheme = auth_scheme;

2
src/mod_authn_mysql.c

@ -257,7 +257,7 @@ SETDEFAULTS_FUNC(mod_authn_mysql_set_defaults) {
}
}
{
if (p->config_storage[0]) { /*(always true)*/
plugin_config *s = p->config_storage[0];
if (buffer_is_empty(s->auth_mysql_col_user)) {
s->auth_mysql_col_user = buffer_init_string("user");

2
src/mod_deflate.c

@ -277,7 +277,7 @@ SETDEFAULTS_FUNC(mod_deflate_setdefaults) {
{ NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET }
};
p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *));
p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *));
for (i = 0; i < srv->config_context->used; i++) {
plugin_config *s;

2
src/mod_geoip.c

@ -127,7 +127,7 @@ SETDEFAULTS_FUNC(mod_geoip_set_defaults) {
if (!p) return HANDLER_ERROR;
p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *));
p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *));
for (i = 0; i < srv->config_context->used; i++) {
data_config const* config = (data_config const*)srv->config_context->data[i];

Loading…
Cancel
Save