commit 292bd62855074f5b21f671fe1958c71e75e1a2bd
parent 2c9090652293247cbe8b9e4fe163c5582dab51ac
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 primary_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 { */