commit | 0998b881d24756c49eb5fb44acb696a2cc32e484 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Wed Jun 24 16:59:18 2015 +0900 |
committer | Shinichiro Hamaji <shinichiro.hamaji@gmail.com> | Thu Jun 25 17:51:01 2015 +0900 |
tree | 6d9918dafa16115c9482ce32d50ddbeaebebfde4 | |
parent | 5e3e3d24fddf00d3f326513c25a6e8ab77b6e440 [diff] [blame] |
[C++] Skip empty command
diff --git a/exec.cc b/exec.cc index 44ef68b..fb0ade7 100644 --- a/exec.cc +++ b/exec.cc
@@ -170,6 +170,8 @@ current_dep_node_ = n; for (Value* v : n->cmds) { shared_ptr<string> cmd = v->Eval(ev_); + if (TrimSpace(*cmd) == "") + continue; while (true) { size_t index = cmd->find('\n'); if (index == string::npos)