changeset 1701:6e5037ae2c1c

Fix warning for unused prngd branch
author Matt Johnston <matt@ucc.asn.au>
date Thu, 28 May 2020 23:01:15 +0800
parents 56f636f84bf5
children 8f93f37c01de
files dbrandom.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dbrandom.c	Thu May 28 22:55:49 2020 +0800
+++ b/dbrandom.c	Thu May 28 23:01:15 2020 +0800
@@ -53,7 +53,7 @@
 static int
 process_file(hash_state *hs, const char *filename,
 		unsigned int wantlen, int prngd) {
-	int readfd;
+	int readfd = -1;
 	unsigned int readcount;
 	int ret = DROPBEAR_FAILURE;