From e61d9b24291cb5b3be90dcc0152266db0fa9749e Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 17 Nov 2008 17:11:55 +0000 Subject: [PATCH] *** empty log message *** --- Common/GmshMessage.cpp | 6 +++++- Common/Options.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Common/GmshMessage.cpp b/Common/GmshMessage.cpp index 7829f2f982..c6c9fe2733 100644 --- a/Common/GmshMessage.cpp +++ b/Common/GmshMessage.cpp @@ -256,7 +256,11 @@ void Msg::Direct(const char *fmt, ...) va_start(args, fmt); vsnprintf(str, sizeof(str), fmt, args); va_end(args); - Direct(3, str); + + if(strlen(str)) + Direct(3, str); + else + Direct(3, " "); } void Msg::Direct(int level, const char *fmt, ...) diff --git a/Common/Options.cpp b/Common/Options.cpp index a061866bac..7d53adcb44 100644 --- a/Common/Options.cpp +++ b/Common/Options.cpp @@ -103,7 +103,7 @@ static void Print_StringOptions(int num, int level, int diff, int help, if(file) fprintf(file, "%s\n", tmp); else - Msg::Direct("%s", tmp); + Msg::Direct(tmp); } } i++; -- GitLab