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