summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/global.cc2
-rw-r--r--test/regress/1102.test8
2 files changed, 9 insertions, 1 deletions
diff --git a/src/global.cc b/src/global.cc
index bf1f453c..6a30cafb 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -323,7 +323,7 @@ option_t<global_scope_t> * global_scope_t::lookup_option(const char * p)
OPT_(help);
break;
case 'i':
- OPT(init_file_);
+ OPT_(init_file_);
break;
case 'o':
OPT(options);
diff --git a/test/regress/1102.test b/test/regress/1102.test
new file mode 100644
index 00000000..259b2883
--- /dev/null
+++ b/test/regress/1102.test
@@ -0,0 +1,8 @@
+2015/01/15 * Grocery Store
+ Assets:Cash ¤ -5,00
+ Expenses:Food
+
+test -i /dev/null reg
+15-Jan-15 Grocery Store Assets:Cash ¤ -5,00 ¤ -5,00
+ Expenses:Food ¤ 5,00 0
+end test