summaryrefslogtreecommitdiff
path: root/crashrep
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-06-28 13:04:59 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-06-28 13:04:59 +0000
commit0982db35c30b70532dd1cb2d933ed680cfb0da82 (patch)
treee40edfeb718ffb96d9017c85b4d5184aaad3cc11 /crashrep
parent9bd2fbfae00092236243a5dcfff900714ac78e8a (diff)
INTEGRATION: CWS reportcompfix2 (1.17.8); FILE MERGED
2004/06/14 10:47:42 hro 1.17.8.1: #i29559# Fixed solaris compiler bug
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 )