silence warnings from clang ccc-analyzer
This commit is contained in:
parent
1e129cce45
commit
609e9a5050
|
@ -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;
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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…
Reference in New Issue