diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-05-30 19:50:47 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-06-02 09:48:28 -0400 |
commit | 06dad2c128b1541764fe33264888c8c7092757cb (patch) | |
tree | 188ee367f130ef31ec27cce454a574a41f1e53db /sss_client | |
parent | 773075a4b6b8c0e8480a49f8c7f28cd850c7ea72 (diff) | |
download | sssd-06dad2c128b1541764fe33264888c8c7092757cb.tar.gz sssd-06dad2c128b1541764fe33264888c8c7092757cb.tar.bz2 sssd-06dad2c128b1541764fe33264888c8c7092757cb.zip |
Don't mix strdup and static strings
Diffstat (limited to 'sss_client')
-rw-r--r-- | sss_client/pam_sss.c | 2 |
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; |