From 6d4c3ffde57ad710be8ecff3675a13ddb9c44379 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 10 Feb 2009 04:23:50 -0400 Subject: If a textual directive can't be found, ignore it. --- src/textual.cc | 4 ++++ 1 file changed, 4 insertions(+) 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)); -- cgit v1.2.3