From 9b8252a78063d177e6849bf8ffbb027ab1d03e52 Mon Sep 17 00:00:00 2001 From: Francois Henrotte <francois.henrotte@ulg.ac.be> Date: Tue, 16 Oct 2012 23:12:16 +0000 Subject: [PATCH] considered case argc==0 --- Common/CommandLine.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Common/CommandLine.cpp b/Common/CommandLine.cpp index f9c9074a7f..2bcb113752 100644 --- a/Common/CommandLine.cpp +++ b/Common/CommandLine.cpp @@ -137,9 +137,7 @@ void GetOptions(int argc, char *argv[]) } #endif - std::string execName="gmsh"; - if(execName.size()) - Msg::SetExecutableName(execName); + Msg::SetExecutableName(argc?argv[0]:""); // get command line options int i = 1; -- GitLab