From efe17de3a254ed932cd2c8f2d79fca42ec375ba6 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Wed, 8 Aug 2018 18:50:55 -0400 Subject: Fix getdelim usage error --- random-seed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/random-seed.c b/random-seed.c index 280e876..defcd5f 100644 --- a/random-seed.c +++ b/random-seed.c @@ -76,7 +76,7 @@ static bool get_machine_id(unsigned char **machine_id) { } size_t machine_id_len = 0; - if (getdelim((char **)machine_id, &machine_id_len, '\0', machine_id_file) != -1) { + if (getdelim((char **)machine_id, &machine_id_len, '\0', machine_id_file) == -1) { fputs("error reading machine id file\n", stderr); *machine_id = NULL; return false; -- cgit v1.2.3-70-g09d2