summaryrefslogtreecommitdiff
path: root/random-seed.c
diff options
context:
space:
mode:
Diffstat (limited to 'random-seed.c')
-rw-r--r--random-seed.c2
1 files changed, 1 insertions, 1 deletions
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;