Skip to content

Commit

Permalink
Silence a few 'may be used uninitialized' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmf01 committed Dec 12, 2024
1 parent 533257d commit 0ef3a5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libFLAC/metadata_iterators.c
Original file line number Diff line number Diff line change
Expand Up @@ -1478,7 +1478,7 @@ static FLAC__bool chain_rewrite_metadata_in_place_(FLAC__Metadata_Chain *chain)
static FLAC__bool chain_rewrite_file_(FLAC__Metadata_Chain *chain, const char *tempfile_path_prefix, const char *filename)
{
FILE *f, *tempfile = NULL;
char *tempfilename;
char *tempfilename = 0;
FLAC__Metadata_SimpleIteratorStatus status;
const FLAC__Metadata_Node *node;

Expand Down
2 changes: 1 addition & 1 deletion src/test_libFLAC++/metadata_manip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ static bool write_chain_(FLAC::Metadata::Chain &chain, bool use_padding, bool pr

if(to_different_file || chain.check_if_tempfile_needed(use_padding)) {
struct flac_stat_s stats;
FILE *file, *tempfile;
FILE *file, *tempfile = 0;
char *tempfilename;
if(preserve_file_stats) {
if(!get_file_stats_(filename, &stats))
Expand Down

0 comments on commit 0ef3a5d

Please sign in to comment.