From e5f19435d916c2ed40a5455f092b012d9a9d4297 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 12:55:40 +0000 Subject: Utilisateur : Fcolin Date : 30/06/00 Heure : 9:37 Archivé dans $/Ivy Commentaire: bug si pas de IVYBUS (vss 2) --- Bus/Ivy/Ivy.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bus/Ivy/Ivy.cxx') diff --git a/Bus/Ivy/Ivy.cxx b/Bus/Ivy/Ivy.cxx index e3c6bc6..fd762b6 100644 --- a/Bus/Ivy/Ivy.cxx +++ b/Bus/Ivy/Ivy.cxx @@ -83,7 +83,9 @@ const char * Ivy::GetDomain(const char *domainlist) } if ( domain.empty() ) { - domain = getenv ( "IVYBUS" ); + const char *env = getenv ( "IVYBUS" ); + if ( env ) + domain = env; if ( domain.empty() ) domain = DEFAULT_DOMAIN; } -- cgit v1.1