summaryrefslogtreecommitdiff
path: root/src/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/global.h')
-rw-r--r--src/global.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/global.h b/src/global.h
index 2cb7842e..392b03a9 100644
--- a/src/global.h
+++ b/src/global.h
@@ -50,6 +50,7 @@ class global_scope_t : public noncopyable, public scope_t
{
shared_ptr<session_t> session_ptr;
ptr_list<report_t> report_stack;
+ empty_scope_t empty_scope;
public:
global_scope_t(char ** envp);
@@ -82,6 +83,7 @@ public:
void pop_report() {
assert(! report_stack.empty());
report_stack.pop_front();
+
// There should always be the "default report" waiting on the stack.
assert(! report_stack.empty());
scope_t::default_scope = &report();
@@ -139,7 +141,6 @@ See LICENSE file included with the distribution for details and disclaimer.");
OPTION__
(global_scope_t, init_file_, // -i
-
CTOR(global_scope_t, init_file_) {
if (const char * home_var = std::getenv("HOME"))
on(none, (path(home_var) / ".ledgerrc").string());