~ubuntu-branches/ubuntu/trusty/augeas/trusty-updates

« back to all changes in this revision

Viewing changes to src/transform.c

  • Committer: Package Import Robot
  • Author(s): Nicolas Valcárcel Scerpella
  • Date: 2011-11-10 09:20:03 UTC
  • mfrom: (1.4.2)
  • Revision ID: package-import@ubuntu.com-20111110092003-532kypb6beba5gmk
Tags: 0.9.0-1
* New upstream release
* Added build-arch and build-indep targets to d/rules. (Closes: #648156)
  Thanks to Niels Thykier for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
823
823
    }
824
824
    result = 0;
825
825
 done:
826
 
    fclose(from_fp);
827
 
    if (fclose(to_fp) != 0)
 
826
    if (from_fp != NULL)
 
827
        fclose(from_fp);
 
828
    if (to_fp != NULL && fclose(to_fp) != 0)
828
829
        result = -1;
829
830
    if (result != 0)
830
831
        unlink(to);