From 7bb2fa955d8010413e4e45d151dcd458607a7cc8 Mon Sep 17 00:00:00 2001 From: "morse%netscape.com" Date: Fri, 11 Jun 1999 23:48:57 +0000 Subject: [PATCH] fixed faulty logic re: pressing cancel in order not to use database passwords git-svn-id: svn://10.0.0.236/trunk@34909 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/wallet/src/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/extensions/wallet/src/wallet.cpp b/mozilla/extensions/wallet/src/wallet.cpp index 6ac31136083..ecbf3dbbff2 100644 --- a/mozilla/extensions/wallet/src/wallet.cpp +++ b/mozilla/extensions/wallet/src/wallet.cpp @@ -750,7 +750,7 @@ Wallet_SetKey(PRBool isNewkey) { newkey = wallet_GetString(password); } if (newkey == NULL) { /* user hit cancel button */ - if (wallet_KeySize() == 0) { /* no password file existed before */ + if (wallet_KeySize() < 0) { /* no password file existed before */ newkey = PL_strdup(""); /* use zero-length password */ } else { return PR_FALSE; /* user could not supply the correct password */