about summary refs log tree commit diff stats
path: root/101run_sandboxed.cc
diff options
context:
space:
mode:
Diffstat (limited to '101run_sandboxed.cc')
-rw-r--r--101run_sandboxed.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/101run_sandboxed.cc b/101run_sandboxed.cc
index 66a19426..a3b6292e 100644
--- a/101run_sandboxed.cc
+++ b/101run_sandboxed.cc
@@ -427,8 +427,8 @@ int trace_error_contents() {
     if (*--p->contents.end() != '\n') out << '\n';
   }
   string result = out.str();
-  if (result.empty()) return 0;
   truncate(result);
+  if (result.empty()) return 0;
   return new_mu_text(result);
 }