Revision: 34900
http://sourceforge.net/p/opalvoip/code/34900
Author: rjongbloed
Date: 2016-08-01 12:52:33 +0000 (Mon, 01 Aug 2016)
Log Message:
-----------
Fixed build with exception handling on.
Modified Paths:
--------------
ptlib/branches/v2_16/src/ptlib/common/object.cxx
Modified: ptlib/branches/v2_16/src/ptlib/common/object.cxx
===================================================================
--- ptlib/branches/v2_16/src/ptlib/common/object.cxx 2016-08-01 12:32:27 UTC (rev 34899)
+++ ptlib/branches/v2_16/src/ptlib/common/object.cxx 2016-08-01 12:52:33 UTC (rev 34900)
@@ -128,6 +128,7 @@
int errorCode = errno;
#endif
+ const char * env;
#if P_EXCEPTIONS
//Throw a runtime exception if the environment variable is set
env = ::getenv("PTLIB_ASSERT_EXCEPTION");
@@ -163,7 +164,7 @@
str = strm.str();
}
- const char * env = ::getenv("PTLIB_ASSERT_ACTION");
+ env = ::getenv("PTLIB_ASSERT_ACTION");
if (env == NULL)
env = ::getenv("PWLIB_ASSERT_ACTION");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|