summaryrefslogtreecommitdiffstats
path: root/sss_client
diff options
context:
space:
mode:
Diffstat (limited to 'sss_client')
-rw-r--r--sss_client/pam_sss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sss_client/pam_sss.c b/sss_client/pam_sss.c
index 2d02f6fe2..cf5c6a484 100644
--- a/sss_client/pam_sss.c
+++ b/sss_client/pam_sss.c
@@ -520,7 +520,7 @@ static int get_pam_items(pam_handle_t *pamh, struct pam_items *pi)
cli_locale = setlocale(LC_ALL, NULL);
if (cli_locale == NULL) {
- pi->pam_cli_locale = "";
+ pi->pam_cli_locale = strdup("");
} else {
pi->pam_cli_locale = strdup(cli_locale);
if (pi->pam_cli_locale == NULL) return PAM_BUF_ERR;