Commit 1bdbdb82 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed Win32 main program empty arguments handling

parent 86122e78
......@@ -42,6 +42,8 @@ InteractionHandler::InteractionHandler(int argc, char *argv[])
bool argumentsScope = false;
for (int i=1; i<argc; i++) {
std::string arg(argv[i]);
if (arg.length()==0)
continue;
if (!argumentsScope) {
if (arg[0]!='-') {
// Found not a switch -> it is a program,
......@@ -341,6 +343,8 @@ int main(int argc, char *argv[])
bool forceTextForm = false;
for (int i=1; i<argc; i++) {
std::string arg(argv[i]);
if (arg.length()==0)
continue;
static const std::string minuss("-s");
static const std::string minusS("-S");
if (programName.empty()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment