diff options
Diffstat (limited to 'src/mod_authn_mysql.c')
-rw-r--r-- | src/mod_authn_mysql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_authn_mysql.c b/src/mod_authn_mysql.c index 10f90586..e712c3f4 100644 --- a/src/mod_authn_mysql.c +++ b/src/mod_authn_mysql.c @@ -258,13 +258,13 @@ 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"); + buffer_copy_string_len(s->auth_mysql_col_user, CONST_STR_LEN("user")); } if (buffer_is_empty(s->auth_mysql_col_pass)) { - s->auth_mysql_col_pass = buffer_init_string("password"); + buffer_copy_string_len(s->auth_mysql_col_pass, CONST_STR_LEN("password")); } if (buffer_is_empty(s->auth_mysql_col_realm)) { - s->auth_mysql_col_realm = buffer_init_string("realm"); + buffer_copy_string_len(s->auth_mysql_col_realm, CONST_STR_LEN("realm")); } } |