Fix segv on uninitialized command fields.

This commit is contained in:
2026-08-30 13:08:48 +01:00
parent e19a8e6bba
commit 87d9148b82
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -124,7 +124,8 @@ void BEd::handle(std::string_view cmd, bool eof) {
throw ed_error("Line number can't be zero.");
}
}
c.function->handle(*this, address, nullptr, c.argument, nullptr);
if (c.function->handle)
c.function->handle(*this, address, nullptr, c.argument, nullptr);
if (c.suffix)
c.suffix->handle(*this);
if (c.temp_address)