Commit e0b406f6 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

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.
parent d908b292
......@@ -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);
......@@ -504,6 +504,7 @@ static bool test_stream_decoder(Layer layer, bool is_ogg)
die_("internal error 006");
delete decoder;
return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment