From d0254ba7ea3f3de175d11cdc877cc4350692ba4a Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 16 Jan 2012 22:19:54 +0100 Subject: * apt-pkg/contrib/fileutils.h: - fix segfault from python-apt testsuite --- apt-pkg/contrib/fileutl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apt-pkg/contrib/fileutl.h') diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h index 147535df1..3814cfe44 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -115,7 +115,7 @@ class FileFd // Simple manipulators inline int Fd() {return iFd;}; - inline void Fd(int fd) {iFd = fd;}; + inline void Fd(int fd) { OpenDescriptor(fd, ReadWrite);}; __deprecated gzFile gzFd(); inline bool IsOpen() {return iFd >= 0;}; -- cgit v1.2.3-70-g09d2