summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc4
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));