Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 75305
Collapse All | Expand All

(-)bzip2-1.0.2-orig/bzlib.c (-2 / +5 lines)
Lines 1536-1544 Link Here
1536
void BZ_API(BZ2_bzclose) (BZFILE* b)
1536
void BZ_API(BZ2_bzclose) (BZFILE* b)
1537
{
1537
{
1538
   int bzerr;
1538
   int bzerr;
1539
   FILE *fp = ((bzFile *)b)->handle;
1539
   FILE *fp;
1540
   
1540
1541
   if (b==NULL) {return;}
1541
   if (b==NULL) {return;}
1542
1543
   fp = ((bzFile *)b)->handle;
1544
1542
   if(((bzFile*)b)->writing){
1545
   if(((bzFile*)b)->writing){
1543
      BZ2_bzWriteClose(&bzerr,b,0,NULL,NULL);
1546
      BZ2_bzWriteClose(&bzerr,b,0,NULL,NULL);
1544
      if(bzerr != BZ_OK){
1547
      if(bzerr != BZ_OK){

Return to bug 75305