28 lines
874 B
Diff
28 lines
874 B
Diff
From aa7808214af31a69b24e55661ae9743642a075f4 Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Berg <bberg@redhat.com>
|
|
Date: Thu, 2 Jan 2020 18:43:59 +0100
|
|
Subject: [PATCH 165/181] examples: Continue verification when return is
|
|
pressed
|
|
|
|
The message says [Y/n], but will not do Y by default. Fix this.
|
|
---
|
|
examples/verify.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/examples/verify.c b/examples/verify.c
|
|
index 83d74ec..d85ce4e 100644
|
|
--- a/examples/verify.c
|
|
+++ b/examples/verify.c
|
|
@@ -92,7 +92,7 @@ on_verify_completed (FpDevice *dev, GAsyncResult *res, void *user_data)
|
|
|
|
g_print ("Verify again? [Y/n]? ");
|
|
if (fgets (buffer, sizeof (buffer), stdin) &&
|
|
- (buffer[0] == 'Y' || buffer[0] == 'y'))
|
|
+ (buffer[0] == 'Y' || buffer[0] == 'y' || buffer[0] == '\n'))
|
|
{
|
|
start_verification (dev, verify_data);
|
|
return;
|
|
--
|
|
2.24.1
|
|
|