summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 4794817..4461304 100644
--- a/main.c
+++ b/main.c
@@ -1155,6 +1155,7 @@ int main(int argc, char **argv) {
if (!state.password.buffer) {
return EXIT_FAILURE;
}
+ state.password.buffer[0] = 0;
if (pipe(sigusr_fds) != 0) {
swaylock_log(LOG_ERROR, "Failed to pipe");