summaryrefslogtreecommitdiff
path: root/lib/vorbisfile.c
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2009-04-27 21:45:44 +0000
committerMonty <xiphmont@xiph.org>2009-04-27 21:45:44 +0000
commitf0bfe52394516948838acc6b95f2dc601aa7fcf6 (patch)
tree85d632508b68ce599b268191153177b4a65d7d72 /lib/vorbisfile.c
parent24f95053b3c74554ee9098d08b1564fa45d9fe6c (diff)
downloadlibvorbis-git-f0bfe52394516948838acc6b95f2dc601aa7fcf6.tar.gz
fix to #1362
svn path=/trunk/vorbis/; revision=15961
Diffstat (limited to 'lib/vorbisfile.c')
-rw-r--r--lib/vorbisfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vorbisfile.c b/lib/vorbisfile.c
index 99131993..5c388001 100644
--- a/lib/vorbisfile.c
+++ b/lib/vorbisfile.c
@@ -185,8 +185,8 @@ static void _add_serialno(ogg_page *og,long **serialno_list, int *n){
long s = ogg_page_serialno(og);
(*n)++;
- if(serialno_list){
- *serialno_list = _ogg_realloc(*serialno_list, sizeof(*serialno_list)*(*n));
+ if(*serialno_list){
+ *serialno_list = _ogg_realloc(*serialno_list, sizeof(**serialno_list)*(*n));
}else{
*serialno_list = _ogg_malloc(sizeof(**serialno_list));
}