Moved unused variable into its ifdef case. Coverity CID 21799.

This commit is contained in:
Thomas Schmitt 2015-10-23 13:53:24 +00:00
parent 330fb2cd20
commit 8416310ba6
2 changed files with 10 additions and 2 deletions

View File

@ -1700,12 +1700,16 @@ int Cdrtrack_add_to_session(struct CdrtracK *track, int trackno,
*/
{
struct burn_track *tr;
struct burn_source *src= NULL, *fd_src= NULL;
struct burn_source *src= NULL;
double padding,lib_padding;
int ret,sector_pad_up;
double fixed_size;
int source_fd;
#ifdef Cdrskin_use_libburn_fifO
struct burn_source *fd_src= NULL;
#endif
track->trackno= trackno;
tr= burn_track_create();
if(tr == NULL)
@ -1811,8 +1815,12 @@ int Cdrtrack_add_to_session(struct CdrtracK *track, int trackno,
burn_session_add_track(session,tr,BURN_POS_END);
ret= 1;
ex:
#ifdef Cdrskin_use_libburn_fifO
if(fd_src!=NULL)
burn_source_free(fd_src);
#endif
if(src!=NULL)
burn_source_free(src);
return(ret);

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2015.10.23.134310"
#define Cdrskin_timestamP "2015.10.23.135526"