summaryrefslogtreecommitdiff
path: root/Ivy
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:55:40 +0000
committerfcolin2007-02-01 12:55:40 +0000
commit574e115b9a6ee3e2469084a874bfa04f18316208 (patch)
treea1e4d8c4a012c73a1bdc6c7deff8cdbf684e09ca /Ivy
parentfeaa8372e6a9849dae2b624a432bf38cd60d6568 (diff)
downloadivy-cplusplus-574e115b9a6ee3e2469084a874bfa04f18316208.zip
ivy-cplusplus-574e115b9a6ee3e2469084a874bfa04f18316208.tar.gz
ivy-cplusplus-574e115b9a6ee3e2469084a874bfa04f18316208.tar.bz2
ivy-cplusplus-574e115b9a6ee3e2469084a874bfa04f18316208.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 'Ivy')
-rw-r--r--Ivy/Ivy.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Ivy/Ivy.cxx b/Ivy/Ivy.cxx
index e3c6bc6..fd762b6 100644
--- a/Ivy/Ivy.cxx
+++ b/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;
}