about summary refs log tree commit diff
path: root/third_party/nix/src/libmain/stack.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/libmain/stack.cc')
-rw-r--r--third_party/nix/src/libmain/stack.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/libmain/stack.cc b/third_party/nix/src/libmain/stack.cc
index 0d5b91c163c7..27c16f5d1f6b 100644
--- a/third_party/nix/src/libmain/stack.cc
+++ b/third_party/nix/src/libmain/stack.cc
@@ -58,8 +58,9 @@ void detectStackOverflow() {
     throw Error("cannot allocate alternative stack");
   }
   stack.ss_flags = 0;
-  if (sigaltstack(&stack, 0) == -1)
+  if (sigaltstack(&stack, 0) == -1) {
     throw SysError("cannot set alternative stack");
+  }
 
   struct sigaction act;
   sigfillset(&act.sa_mask);