mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
Fix three more cppcheck warnings
* src/flac/vorbiscomment.c:203: Uninitialized variable: converted. * src/flac/vorbiscomment.c:210: Uninitialized variable: converted. * src/test_libFLAC++/decoders.cpp:507: Memory leak: decoder.
This commit is contained in:
@@ -104,7 +104,7 @@ static FLAC__bool parse_vorbis_comment_field(const char *field_ref, char **field
|
||||
static FLAC__bool set_vc_field(FLAC__StreamMetadata *block, const Argument_VcField *field, FLAC__bool *needs_write, FLAC__bool raw, const char **violation)
|
||||
{
|
||||
FLAC__StreamMetadata_VorbisComment_Entry entry;
|
||||
char *converted;
|
||||
char *converted = NULL;
|
||||
|
||||
FLAC__ASSERT(0 != block);
|
||||
FLAC__ASSERT(block->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
|
||||
|
||||
@@ -504,6 +504,7 @@ static bool test_stream_decoder(Layer layer, bool is_ogg)
|
||||
break;
|
||||
default:
|
||||
die_("internal error 006");
|
||||
delete decoder;
|
||||
return false;
|
||||
}
|
||||
if(init_status != ::FLAC__STREAM_DECODER_INIT_STATUS_OK)
|
||||
|
||||
Reference in New Issue
Block a user