diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2014-08-25 09:19:06 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2014-08-25 09:19:06 -0230 |
commit | 2cd0f7371c59b932c8a2108e567e3611615b02ac (patch) | |
tree | 7241d699dfe87c67aaf1a8a7172ee9e52691a5b5 /cpp/src/IceUtil/Exception.cpp | |
parent | vs-addin updates. (diff) | |
download | ice-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.cpp | 2 |
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) |