From 66e86354976d541edef083a641cebca76b847c98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kim=20Nguy=E1=BB=85n?= Date: Mon, 15 Jul 2013 17:37:39 +0200 Subject: [PATCH] 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. --- remake.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.17.1