programs/sndfile-metadata-get.c : Make valgrind clean.

This commit is contained in:
Erik de Castro Lopo 2009-01-11 16:42:28 +11:00
parent c09f0b3b60
commit 6a56938525
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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)) ;