From a0ac09adeae50b41b4047d68aead7b545297750c Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Fri, 16 Aug 2002 05:40:16 +0000 Subject: [PATCH] add assertions --- src/libFLAC/format.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libFLAC/format.c b/src/libFLAC/format.c index ecf4127f..0e8d5f48 100644 --- a/src/libFLAC/format.c +++ b/src/libFLAC/format.c @@ -169,6 +169,8 @@ unsigned FLAC__format_seektable_sort(FLAC__StreamMetadata_SeekTable *seek_table) unsigned i, j; FLAC__bool first; + FLAC__ASSERT(0 != seek_table); + /* sort the seekpoints */ qsort(seek_table->points, seek_table->num_points, sizeof(FLAC__StreamMetadata_SeekPoint), (int (*)(const void *, const void *))seekpoint_compare_);