about summary refs log tree commit diff stats
path: root/101run_sandboxed.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-12-11 16:18:18 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-12-11 16:18:18 -0800
commit294b2ab35983ebe95698835bb54bca8bd3eec101 (patch)
treefbc74bea6cefd7b8f527d36a7b7c6804dd886414 /101run_sandboxed.cc
parentd5c86dfd8706e6b3ceee7843464797e6fcad4259 (diff)
downloadmu-294b2ab35983ebe95698835bb54bca8bd3eec101.tar.gz
3705 - switch to tested file-system primitives
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);
 }