summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/Exception.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2014-08-25 09:19:06 -0230
committerDwayne Boone <dwayne@zeroc.com>2014-08-25 09:19:06 -0230
commit2cd0f7371c59b932c8a2108e567e3611615b02ac (patch)
tree7241d699dfe87c67aaf1a8a7172ee9e52691a5b5 /cpp/src/IceUtil/Exception.cpp
parentvs-addin updates. (diff)
downloadice-2cd0f7371c59b932c8a2108e567e3611615b02ac.tar.bz2
ice-2cd0f7371c59b932c8a2108e567e3611615b02ac.tar.xz
ice-2cd0f7371c59b932c8a2108e567e3611615b02ac.zip
ICE-5639 added comment for clarification of SocketOperation enum
Diffstat (limited to 'cpp/src/IceUtil/Exception.cpp')
-rw-r--r--cpp/src/IceUtil/Exception.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/Exception.cpp b/cpp/src/IceUtil/Exception.cpp
index 56569f084a6..9a67c79e02a 100644
--- a/cpp/src/IceUtil/Exception.cpp
+++ b/cpp/src/IceUtil/Exception.cpp
@@ -260,6 +260,8 @@ getStackTrace()
const size_t maxDepth = 100;
void *stackAddrs[maxDepth];
+ // With some compilers/toolchains this can fail so we must check that
+ // stackStrings is not null.
size_t stackDepth = backtrace(stackAddrs, maxDepth);
char **stackStrings = backtrace_symbols(stackAddrs, stackDepth);
if(stackStrings != NULL)