mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
add assertions
This commit is contained in:
@@ -169,6 +169,8 @@ unsigned FLAC__format_seektable_sort(FLAC__StreamMetadata_SeekTable *seek_table)
|
|||||||
unsigned i, j;
|
unsigned i, j;
|
||||||
FLAC__bool first;
|
FLAC__bool first;
|
||||||
|
|
||||||
|
FLAC__ASSERT(0 != seek_table);
|
||||||
|
|
||||||
/* sort the seekpoints */
|
/* sort the seekpoints */
|
||||||
qsort(seek_table->points, seek_table->num_points, sizeof(FLAC__StreamMetadata_SeekPoint), (int (*)(const void *, const void *))seekpoint_compare_);
|
qsort(seek_table->points, seek_table->num_points, sizeof(FLAC__StreamMetadata_SeekPoint), (int (*)(const void *, const void *))seekpoint_compare_);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user