summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-12-18 16:53:22 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-12-18 16:53:22 +0100
commitc55451ff2e5a098a6431dfd1be322f7113a86002 (patch)
tree4369cdb8cc209b1e44f81e978684992a68cd5dbc /apt-pkg/deb/dpkgpm.cc
parenta0895a74fe95997a5d75e5b54c95afb9594554f6 (diff)
parentd0cf6da810b2ad898c0eb75ac8815ab5e56cf015 (diff)
merge from the debian-sid branch
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r--apt-pkg/deb/dpkgpm.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 6eb3b40ac..d1a275a47 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -879,7 +879,8 @@ bool pkgDPkgPM::Go(int OutStatusFd)
const char *s = _("Can not write log, openpty() "
"failed (/dev/pts not mounted?)\n");
fprintf(stderr, "%s",s);
- fprintf(term_out, "%s",s);
+ if(term_out)
+ fprintf(term_out, "%s",s);
master = slave = -1;
} else {
struct termios rtt;