fixed -Wshadow warnings
Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7143 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:

committed by
Eric Wong

parent
28008e6977
commit
07adb14e3c
@@ -62,12 +62,12 @@ static int flacFindVorbisCommentFloat(const FLAC__StreamMetadata * block,
|
||||
- pos;
|
||||
if (len > 0) {
|
||||
unsigned char tmp;
|
||||
unsigned char *dup = &(block->data.vorbis_comment.
|
||||
comments[offset].entry[pos]);
|
||||
tmp = dup[len];
|
||||
dup[len] = '\0';
|
||||
*fl = atof((char *)dup);
|
||||
dup[len] = tmp;
|
||||
unsigned char *p = &(block->data.vorbis_comment.
|
||||
comments[offset].entry[pos]);
|
||||
tmp = p[len];
|
||||
p[len] = '\0';
|
||||
*fl = atof((char *)p);
|
||||
p[len] = tmp;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user