aboutsummaryrefslogtreecommitdiff
path: root/src/shared.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared.cc')
-rw-r--r--src/shared.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared.cc b/src/shared.cc
index dcda0b50a..80463308a 100644
--- a/src/shared.cc
+++ b/src/shared.cc
@@ -47,6 +47,8 @@ static void initAndRun(int argc, char * * argv)
}
+static char buf[1024];
+
int main(int argc, char * * argv)
{
/* ATerm setup. */
@@ -54,7 +56,6 @@ int main(int argc, char * * argv)
ATinit(argc, argv, &bottomOfStack);
/* Turn on buffering for cerr. */
- char buf[1024];
cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
try {