summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-05-30 19:50:47 -0400
committerSimo Sorce <ssorce@redhat.com>2009-06-02 09:48:28 -0400
commit06dad2c128b1541764fe33264888c8c7092757cb (patch)
tree188ee367f130ef31ec27cce454a574a41f1e53db
parent773075a4b6b8c0e8480a49f8c7f28cd850c7ea72 (diff)
downloadsssd-06dad2c128b1541764fe33264888c8c7092757cb.tar.gz
sssd-06dad2c128b1541764fe33264888c8c7092757cb.tar.bz2
sssd-06dad2c128b1541764fe33264888c8c7092757cb.zip
Don't mix strdup and static strings
-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 2d02f6fe..cf5c6a48 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;