chiark / gitweb /
use "Out of memory." consistantly (or with "\n")
[elogind.git] / src / readahead / readahead-replay.c
index 6e6db601d45a101356ee9cadb907104810ba184d..f90821e831e67b28f6ad363b33d1e8f0ccf29ebf 100644 (file)
@@ -150,12 +150,13 @@ static int replay(const char *root) {
         block_bump_request_nr(root);
 
         if (asprintf(&pack_fn, "%s/.readahead", root) < 0) {
-                log_error("Out of memory");
+                log_error("Out of memory.");
                 r = -ENOMEM;
                 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 {