diff options
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) |