diff options
author | Monty <xiphmont@xiph.org> | 2009-04-27 21:45:44 +0000 |
---|---|---|
committer | Monty <xiphmont@xiph.org> | 2009-04-27 21:45:44 +0000 |
commit | f0bfe52394516948838acc6b95f2dc601aa7fcf6 (patch) | |
tree | 85d632508b68ce599b268191153177b4a65d7d72 /lib/vorbisfile.c | |
parent | 24f95053b3c74554ee9098d08b1564fa45d9fe6c (diff) | |
download | libvorbis-git-f0bfe52394516948838acc6b95f2dc601aa7fcf6.tar.gz |
fix to #1362
svn path=/trunk/vorbis/; revision=15961
Diffstat (limited to 'lib/vorbisfile.c')
-rw-r--r-- | lib/vorbisfile.c | 4 |
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)); } |