mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-21 11:21:24 +00:00
avoid deref NULL
in fluid_synth_add_default_mod()
This commit is contained in:
parent
b1c23fb35d
commit
accefc170f
1 changed files with 1 additions and 0 deletions
|
@ -1090,6 +1090,7 @@ fluid_synth_add_default_mod(fluid_synth_t* synth, fluid_mod_t* mod, int mode)
|
|||
fluid_mod_t* new_mod;
|
||||
|
||||
fluid_return_val_if_fail (synth != NULL, FLUID_FAILED);
|
||||
fluid_return_val_if_fail (mod != NULL, FLUID_FAILED);
|
||||
fluid_synth_api_enter(synth);
|
||||
|
||||
default_mod = synth->default_mod;
|
||||
|
|
Loading…
Reference in a new issue