mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-19 16:00:51 +00:00
validate param of new_fluid_defsfloader()
This commit is contained in:
parent
6cdcf5137e
commit
8fb1f500e0
1 changed files with 2 additions and 0 deletions
|
@ -93,6 +93,8 @@ static const fluid_file_callbacks_t def_file_callbacks =
|
|||
fluid_sfloader_t* new_fluid_defsfloader(fluid_settings_t* settings)
|
||||
{
|
||||
fluid_sfloader_t* loader;
|
||||
|
||||
fluid_return_val_if_fail(settings != NULL, NULL);
|
||||
|
||||
loader = FLUID_NEW(fluid_sfloader_t);
|
||||
if (loader == NULL) {
|
||||
|
|
Loading…
Reference in a new issue