Handle some undefined behavior regarding null pads

This commit is contained in:
Megamouse 2020-11-26 00:06:03 +01:00
parent ca9898e838
commit 9e352da052
8 changed files with 54 additions and 4 deletions

View file

@ -49,6 +49,8 @@ evdev_joystick_handler::~evdev_joystick_handler()
void evdev_joystick_handler::init_config(pad_config* cfg, const std::string& name)
{
if (!cfg) return;
// Set this profile's save location
cfg->cfg_name = name;