diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-16 22:19:54 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2012-01-16 22:19:54 +0100 |
commit | d0254ba7ea3f3de175d11cdc877cc4350692ba4a (patch) | |
tree | 8029a1298467bd9ca44fb90c94354599cc90a56d /apt-pkg/contrib | |
parent | e70c1d067335bfa686fa0c6e75e32afb095e1aaa (diff) |
* apt-pkg/contrib/fileutils.h:
- fix segfault from python-apt testsuite
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r-- | apt-pkg/contrib/fileutl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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;}; |