Skip to content

Commit c3ac1d1

Browse files
committed
Fix a possible NULL deref in test_preset_pinning
1 parent be0c1d4 commit c3ac1d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_preset_pinning.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ static int count_loaded_samples(fluid_synth_t *synth, int sfont_id)
177177
int count = 0;
178178

179179
fluid_sfont_t *sfont = fluid_synth_get_sfont_by_id(synth, sfont_id);
180+
TEST_ASSERT(sfont != NULL);
180181
fluid_defsfont_t *defsfont = fluid_sfont_get_data(sfont);
181182

182183
for(list = defsfont->sample; list; list = fluid_list_next(list))

0 commit comments

Comments
 (0)