Guard against NULL value passed to "end" directive
Fixes 89233B6D-CB21-4162-98E3-BE38B9336070
This commit is contained in:
parent
8d4de77836
commit
68056c1948
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue