Initialize Copy::Worker::error to false
void Copy::Worker::main()
{
- Path::mkpath(copy.src.subpath(0, copy.src.size()-1), 0755);
+ Path::mkpath(copy.dest.subpath(0, copy.dest.size()-1), 0755);
+
if(unlink(copy.dest.str().c_str())<0 && errno!=ENOENT)
{
int err=errno;
class Worker: public Msp::Thread
{
public:
- Worker(Copy &i): copy(i), done(false) { launch(); }
+ Worker(Copy &i): copy(i), done(false), error(false) { launch(); }
bool get_done() const { return done; }
bool get_error() const { return error; }
private: