From 89993e9cbf95b55c941183f4db6ef41e4ce30029 Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Tue, 1 Jan 2013 01:13:42 +0800 Subject: [PATCH] Let io_data_t constructor take optional io_mode and fd --- io.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/io.h b/io.h index b7abbec76..96f5cbaf4 100644 --- a/io.h +++ b/io.h @@ -97,10 +97,10 @@ public: /** Set to true if this is an input io redirection */ bool is_input; - io_data_t() : + io_data_t(io_mode_t m = IO_INVALID, int f=0) : out_buffer(), - io_mode(IO_INVALID), - fd(0), + io_mode(m), + fd(f), param1(), param2(), filename_cstr(NULL),