X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprocess.h;h=0d7faa6c82f96c0e1eb413e582eab6c5a10ff4f4;hb=4ad05c650c55e3edccea887d15b26f41cdf60fb6;hp=55b62cd450c534309d72dd7d39fa96f2cedbfb1c;hpb=c3e242c2629cbc9645258b30aaf07b7285d4372b;p=libs%2Fcore.git diff --git a/source/core/process.h b/source/core/process.h index 55b62cd..0d7faa6 100644 --- a/source/core/process.h +++ b/source/core/process.h @@ -30,20 +30,19 @@ public: private: struct Private; - Private *priv; + Private *priv = nullptr; FS::Path work_dir; - bool redirect; - IO::Base *cin; - IO::Base *cout; - IO::Base *cerr; - bool running; - bool finished; - unsigned exit_code; + bool redirect = false; + IO::Base *cin = nullptr; + IO::Base *cout = nullptr; + IO::Base *cerr = nullptr; + bool running = false; + bool finished = false; + unsigned exit_code = 0; static Process *_self; Process(const Private &); - void init(); public: Process(); ~Process();