diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-08-03 14:53:51 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-08-03 14:53:51 +0200 |
commit | 608c766dc110493b952a615c3eb82c3cf3ed8b90 (patch) | |
tree | 6799da2bc886bcf9b671b094d8f9a0c04a012986 /apt-pkg/deb | |
parent | 8da1f029b7544202da68100b22a2901809bf07af (diff) |
* apt-pkg/init.cc:
- init Dir::Log::Terminal
* apt-pkg/deb/dpkgpm.cc:
- only work with term_out if it is not NULL
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index aa840f85e..94215197c 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -843,12 +843,14 @@ bool pkgDPkgPM::Go(int OutStatusFd) if(stopOnError) { - fclose(term_out); + if(term_out) + fclose(term_out); return false; } } } - fclose(term_out); + if(term_out) + fclose(term_out); if (RunScripts("DPkg::Post-Invoke") == false) return false; |