From 1f27ba3b35b0a9d101996f95775fed5455da4eb4 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Wed, 20 May 2026 22:58:53 +0100 Subject: [PATCH] Try to explain more clearly. --- src/main/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/options.c b/src/main/options.c index 126c52d..68544d1 100644 --- a/src/main/options.c +++ b/src/main/options.c @@ -621,7 +621,7 @@ static bool opts_use_size_of_file(opts_t opts, const char *size_file) return true; } /* Read not successful - report the error and return. */ - /* NB fclose() comes after the error report, to retain errno. */ + /* Report the error first, as fclose() could change errno. */ pv_perror("%s: %s", size_file, sysfs_filename); (void) fclose(sysfs_fptr); return false;