Blame SOURCES/0165-examples-Continue-verification-when-return-is-presse.patch

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