diff --git a/cpp/s2pexec/s2pexec_core.cpp b/cpp/s2pexec/s2pexec_core.cpp index 8535540e..94c2fa02 100644 --- a/cpp/s2pexec/s2pexec_core.cpp +++ b/cpp/s2pexec/s2pexec_core.cpp @@ -355,6 +355,11 @@ int S2pExec::Run(span args, bool in_process) return -1; } + if (command.empy()) { + cerr << "Error: Missing command" << endl; + return -1; + } + if (!Init(in_process)) { cerr << "Error: Can't initialize bus" << endl; return -1;