chiark / gitweb /
readahead: make sure to close pack file before exiting, to be valgrind clean
[elogind.git] / src / readahead / readahead-replay.c
index 6e6db601d45a101356ee9cadb907104810ba184d..7bd079aae591c5459617313401fd102ae282fcca 100644 (file)
@@ -155,7 +155,8 @@ static int replay(const char *root) {
                 goto finish;
         }
 
-        if ((!(pack = fopen(pack_fn, "re")))) {
+        pack = fopen(pack_fn, "re");
+        if (!pack) {
                 if (errno == ENOENT)
                         log_debug("No pack file found.");
                 else {