From: Kim Nguyễn Date: Mon, 15 Jul 2013 15:37:39 +0000 (+0200) Subject: Fix a bug where the content of variables are appended instead of being X-Git-Tag: v0.1~79 X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=commitdiff_plain;h=66e86354976d541edef083a641cebca76b847c98 Fix a bug where the content of variables are appended instead of being overwritten. Thus, when several sub-process send variable A=foo to the server, the content of A becomes foofoofoofoo instead of just foo. --- diff --git a/remake.cpp b/remake.cpp index 77020a5..558ff3a 100644 --- a/remake.cpp +++ b/remake.cpp @@ -2565,6 +2565,7 @@ void accept_client() goto error; } DEBUG << "adding variable " << line << " to job " << job_id << std::endl; + vars[name].clear(); read_words(in, vars[name]); p += len + 1; }