summaryrefslogtreecommitdiff
path: root/Bus/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:55:40 +0000
committerfcolin2007-02-01 12:55:40 +0000
commite5f19435d916c2ed40a5455f092b012d9a9d4297 (patch)
tree2eea76b32356e3b30d81203e0fdc28f78a21e955 /Bus/Ivy
parent77497320bfa715b5d7976a8a632c7c957677c6ab (diff)
downloadivy-cplusplus-e5f19435d916c2ed40a5455f092b012d9a9d4297.zip
ivy-cplusplus-e5f19435d916c2ed40a5455f092b012d9a9d4297.tar.gz
ivy-cplusplus-e5f19435d916c2ed40a5455f092b012d9a9d4297.tar.bz2
ivy-cplusplus-e5f19435d916c2ed40a5455f092b012d9a9d4297.tar.xz
Utilisateur : Fcolin Date : 30/06/00 Heure : 9:37 Archivé dans $/Ivy Commentaire: bug si pas de IVYBUS (vss 2)
Diffstat (limited to 'Bus/Ivy')
-rw-r--r--Bus/Ivy/Ivy.cxx4
1 files changed, 3 insertions, 1 deletions
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;
}