From 8c2a87e31d06bfc76a0e38efb201a4973ce7818c Mon Sep 17 00:00:00 2001 From: Ralph Giles <giles@mozilla.com> Date: Fri, 4 Nov 2016 16:51:49 -0700 Subject: [PATCH] Fix typo in assertion. Commit d0c82543d55f1f5938460022777301b8de023bc9 broke builds with --enable-assertions with error: 'tag_len' undeclared. Fixing the simple typo in the symbol reference resolves the issue. --- src/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/info.c b/src/info.c index 3872246..1666144 100644 --- a/src/info.c +++ b/src/info.c @@ -410,7 +410,7 @@ static int opus_tags_get_gain(const OpusTags *_tags,int *_gain_q8, ncomments=_tags->comments; /*Look for the first valid tag with the name _tag_name and use that.*/ for(ci=0;ci<ncomments;ci++){ - OP_ASSERT(tag_len<=(size_t)INT_MAX); + OP_ASSERT(_tag_len<=(size_t)INT_MAX); if(opus_tagncompare(_tag_name,(int)_tag_len,comments[ci])==0){ char *p; opus_int32 gain_q8; -- GitLab