Fix a crash if you don't specify 'lpxserver'

This commit is contained in:
2025-12-18 15:08:55 -05:00
parent 63aa5b4c15
commit a9a5e52a23

View File

@@ -632,6 +632,12 @@ class Driver {
} }
} }
// Make sure there's exactly one argument left for the engine type.
if (argc != 1) {
std::cerr << "Must specify the engine type" << std::endl;
return 1;
}
// Initialize state variables. // Initialize state variables.
read_console_recently_ = false; read_console_recently_ = false;
chbuf_.reset(new char[DRV_SHORTSTRING_SIZE]); chbuf_.reset(new char[DRV_SHORTSTRING_SIZE]);