diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-05-26 10:19:00 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-05-26 12:15:14 -0400 |
commit | 5eadfd50562c19f3e71ee754cd58173a25420996 (patch) | |
tree | 536902e6926e69a7f944afec979742a2186b287f /server/providers/dp_auth_util.c | |
parent | 1eca703ca65ad74673fd20ee97bb8d6e538f0085 (diff) | |
download | sssd-5eadfd50562c19f3e71ee754cd58173a25420996.tar.gz sssd-5eadfd50562c19f3e71ee754cd58173a25420996.tar.xz sssd-5eadfd50562c19f3e71ee754cd58173a25420996.zip |
Silence warnings
Diffstat (limited to 'server/providers/dp_auth_util.c')
-rw-r--r-- | server/providers/dp_auth_util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/providers/dp_auth_util.c b/server/providers/dp_auth_util.c index 366a3fb2d..279e50b62 100644 --- a/server/providers/dp_auth_util.c +++ b/server/providers/dp_auth_util.c @@ -60,10 +60,10 @@ bool dp_pack_pam_request(DBusMessage *msg, struct pam_data *pd) int ret; if (pd->user == NULL || pd->domain == NULL) return false; - if (pd->service == NULL) pd->service = ""; - if (pd->tty == NULL) pd->tty = ""; - if (pd->ruser == NULL) pd->ruser = ""; - if (pd->rhost == NULL) pd->rhost = ""; + if (pd->service == NULL) pd->service = talloc_strdup(pd, ""); + if (pd->tty == NULL) pd->tty = talloc_strdup(pd, ""); + if (pd->ruser == NULL) pd->ruser = talloc_strdup(pd, ""); + if (pd->rhost == NULL) pd->rhost = talloc_strdup(pd, ""); ret = dbus_message_append_args(msg, |