diff options
| author | ache <ache@ache.one> | 2022-05-02 02:59:27 +0200 |
|---|---|---|
| committer | ache <ache@ache.one> | 2022-05-02 02:59:27 +0200 |
| commit | 9f2097b7ccf90f6c0ea99c5c0581704075577760 (patch) | |
| tree | 304e065be45bd434110f4d988fd7a44ed1fe7706 /src | |
| parent | Update README (diff) | |
Don't validate an empty password
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |