From 549452d7fc41cbe0948aee30a1ade1bc88617333 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 28 Mar 2018 14:20:28 -0700 Subject: [PATCH] construct: Use static named options argument to console command. --- construct/console.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/construct/console.cc b/construct/console.cc index 04ff398e2..254fa257a 100644 --- a/construct/console.cc +++ b/construct/console.cc @@ -292,7 +292,8 @@ handle_line_bymodule(const string_view &line) std::ostringstream ss; pubsetbuf(ss, buf); int ret; - switch((ret = command(ss, line, {}))) + static const string_view opts; + switch((ret = command(ss, line, opts))) { case 0: case 1: