From 68056c194895f9943a8b8cbdccf52fa369322612 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 22 May 2010 13:23:38 -0400 Subject: [PATCH] Guard against NULL value passed to "end" directive Fixes 89233B6D-CB21-4162-98E3-BE38B9336070 --- src/textual.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textual.cc b/src/textual.cc index dfca7943..d953da26 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -713,7 +713,7 @@ void instance_t::master_account_directive(char * line) void instance_t::end_directive(char * kind) { - string name(kind); + string name(kind ? kind : ""); if ((name.empty() || name == "account") && ! context.front_is_account()) throw_(std::runtime_error,