mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-27 03:50:29 +00:00
programs/sndfile-metadata-get.c : Make valgrind clean.
This commit is contained in:
parent
c09f0b3b60
commit
6a56938525
@ -1,3 +1,8 @@
|
||||
2009-01-11 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* programs/sndfile-metadata-get.c
|
||||
Make valgrind clean.
|
||||
|
||||
2009-01-10 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* doc/index.html
|
||||
|
@ -80,11 +80,13 @@ main (int argc, char *argv [])
|
||||
} ;
|
||||
|
||||
/* Get the time in case we need it later. */
|
||||
memset (&sfinfo, 0, sizeof (sfinfo)) ;
|
||||
if ((file = sf_open (filename, SFM_READ, &sfinfo)) == NULL)
|
||||
{ printf ("Error : Open of file '%s' failed : %s\n\n", filename, sf_strerror (file)) ;
|
||||
exit (1) ;
|
||||
} ;
|
||||
|
||||
memset (&binfo, 0, sizeof (binfo)) ;
|
||||
if (sf_command (file, SFC_GET_BROADCAST_INFO, &binfo, sizeof (binfo)) == 0)
|
||||
memset (&binfo, 0, sizeof (binfo)) ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user