diff options
author | John Wiegley <johnw@newartisans.com> | 2010-05-22 13:23:38 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-05-22 21:35:01 -0400 |
commit | 68056c194895f9943a8b8cbdccf52fa369322612 (patch) | |
tree | 62f72bb601e0bbe54bf359b3724f475ad5fc533e /src/textual.cc | |
parent | 8d4de7783666e901538a0cbaa716400ef95e408d (diff) | |
download | fork-ledger-68056c194895f9943a8b8cbdccf52fa369322612.tar.gz fork-ledger-68056c194895f9943a8b8cbdccf52fa369322612.tar.bz2 fork-ledger-68056c194895f9943a8b8cbdccf52fa369322612.zip |
Guard against NULL value passed to "end" directive
Fixes 89233B6D-CB21-4162-98E3-BE38B9336070
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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, |