commit 395844e4f2ba98f828ba03abf842e70147797352
parent e73ec88c8c1c8b8b12359396f6475a2057b2aa41
Author: wwp <subscript@free.fr>
Date: Thu, 30 Sep 2021 11:51:52 +0200
Fix CID 1491404: logically dead code.
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/password.c b/src/password.c
@@ -166,9 +166,6 @@ gboolean master_passphrase_is_correct(const gchar *input)
g_return_val_if_fail(stored_kd != NULL && strlen(stored_kd) > 0, FALSE);
g_return_val_if_fail(input != NULL, FALSE);
- if (stored_kd == NULL)
- return FALSE;
-
tokens = g_strsplit_set(stored_kd, "{}", 3);
if (tokens[0] == NULL ||
strlen(tokens[0]) != 0 || /* nothing before { */