]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add missing curly braces
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 27 Jul 2020 07:40:05 +0000 (09:40 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 27 Jul 2020 07:40:05 +0000 (09:40 +0200)
src/Util.cpp

index 8e36d916d8367eec3cebc87fe874d6b4e11747e2..0cda41f1353b02db22341a7afd4db8992c3a9eb3 100644 (file)
@@ -275,8 +275,9 @@ fallocate(int fd, long new_size)
     return ENOMEM;
   }
   int err = 0;
-  if (!write_fd(fd, buf, bytes_to_write))
+  if (!write_fd(fd, buf, bytes_to_write)) {
     err = errno;
+  }
   lseek(fd, saved_pos, SEEK_SET);
   free(buf);
   return err;