Ensure pw val is empty before further usage

This commit is contained in:
Joshua Harlow 2012-08-30 21:14:41 -07:00
parent 6479d69344
commit 18b4b983ca

View File

@ -61,6 +61,7 @@ class KeyringProxy(object):
pw_val = self.ring.get_password(name, PW_USER)
if pw_val:
return (True, pw_val)
pw_val = ''
if self.enable_prompt and prompt:
pw_val = InputPassword().get_password(name, prompt)
if self.random_on_empty and len(pw_val) == 0: