summaryrefslogtreecommitdiff
path: root/crashrep
diff options
context:
space:
mode:
Diffstat (limited to 'crashrep')
-rwxr-xr-xcrashrep/source/unx/main.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/crashrep/source/unx/main.cxx b/crashrep/source/unx/main.cxx
index 00e6ab9d2dd6..6799955283a6 100755
--- a/crashrep/source/unx/main.cxx
+++ b/crashrep/source/unx/main.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: main.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: rt $ $Date: 2004-06-02 14:49:41 $
+ * last change: $Author: hr $ $Date: 2004-06-28 14:04:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -973,7 +973,10 @@ static string get_environment_string( const char *pEnvName )
{
const char *pEnvValue = getenv( pEnvName );
- return pEnvValue ? string(pEnvValue) : string("");
+ if ( pEnvValue )
+ return pEnvValue;
+ else
+ return "";
}
static string read_from_file( const string& rFileName )