add sanity check

This commit is contained in:
radius 2015-10-29 20:25:41 -05:00
parent efad7848ec
commit 210ec0c23b
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ bool input_remapping_load_file(const char *path)
config_file_t *conf = config_file_new(path); config_file_t *conf = config_file_new(path);
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
if (!conf) if (!conf || path[0] == '\0')
return false; return false;
strlcpy(settings->input.remapping_path, path, strlcpy(settings->input.remapping_path, path,