nsswitch: Remove unused variable in _pam_winbind_change_pwd().
authorAndreas Schneider <asn@samba.org>
Thu, 6 Dec 2012 14:16:52 +0000 (15:16 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 12 Dec 2012 14:00:02 +0000 (15:00 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
nsswitch/pam_winbind.c

index 29d6f7c7bc37de8c7bebfeccab0f8c54d90887d7..d4df8b169a33a73c2985ca02dbe7ac3f5aaed3a1 100644 (file)
@@ -812,13 +812,11 @@ static bool _pam_winbind_change_pwd(struct pwb_context *ctx)
 {
        struct pam_message msg, *pmsg;
        struct pam_response *resp = NULL;
-       const char *prompt;
        int ret;
        bool retval = false;
-       prompt = _("Do you want to change your password now?");
        pmsg = &msg;
        msg.msg_style = PAM_RADIO_TYPE;
-       msg.msg = prompt;
+       msg.msg = _("Do you want to change your password now?");
        ret = converse(ctx->pamh, 1, &pmsg, &resp);
        if (resp == NULL) {
                if (ret == PAM_SUCCESS) {