aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorache <ache@ache.one>2022-05-02 02:59:27 +0200
committerache <ache@ache.one>2022-05-02 02:59:27 +0200
commit9f2097b7ccf90f6c0ea99c5c0581704075577760 (patch)
tree304e065be45bd434110f4d988fd7a44ed1fe7706 /src
parentUpdate README (diff)
Don't validate an empty password
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 7d6b88b..04bb98c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -93,7 +93,9 @@ static void handle_xsl_key_input(saver_state_t *state, const char c)
break;
case '\r': // Return.
case '\n': // Return.
- accept_password(state);
+ if(pw_len > 0) {
+ accept_password(state);
+ }
break;
default:
if (pw_len + 1 < kMaxPasswordLength) {