Switch to side-by-side view
--- a/src/execmd.cpp +++ b/src/execmd.cpp @@ -1007,6 +1007,10 @@ // Static bool ExecCmd::backtick(const vector<string> cmd, string& out) { + if (cmd.empty()) { + LOGERR(("ExecCmd::backtick: empty command\n")); + return false; + } vector<string>::const_iterator it = cmd.begin(); it++; vector<string> args(it, cmd.end());