diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-10 04:23:50 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-10 04:23:50 -0400 |
commit | 6d4c3ffde57ad710be8ecff3675a13ddb9c44379 (patch) | |
tree | 3948215519a8f5d09968dbf6500f9eaeb478304a | |
parent | 6d22f2d56ceaff956648c8165ae8e33fccba5c8b (diff) | |
download | fork-ledger-6d4c3ffde57ad710be8ecff3675a13ddb9c44379.tar.gz fork-ledger-6d4c3ffde57ad710be8ecff3675a13ddb9c44379.tar.bz2 fork-ledger-6d4c3ffde57ad710be8ecff3675a13ddb9c44379.zip |
If a textual directive can't be found, ignore it.
-rw-r--r-- | src/textual.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc index b6d3a372..d15b0e67 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -662,6 +662,9 @@ void instance_t::define_directive(char * line) void instance_t::general_directive(char * line) { char * p = next_element(line); + if (! p) + return; + string word(line + 1); switch (*p) { @@ -703,6 +706,7 @@ void instance_t::general_directive(char * line) std::strcpy(directive.get(), "dir_"); std::strcpy(directive.get() + textdir_len, p); + // jww (2009-02-10): This needs some serious work. if (expr_t::ptr_op_t op = lookup(directive.get())) { call_scope_t args(*this); args.push_back(string_value(p)); |