Move variable aSigInfo to the proper scope.
perror ("sigaction");
}
- siginfo_t * aSigInfo = NULL;
-#ifdef SA_SIGINFO
- aSigInfo = theSigInfo;
-#endif
-
#if defined(HAVE_PTHREAD_H) && defined(NO_CXX_EXCEPTION)
if (pthread_self() != getOCCThread() || !Standard_ErrorHandler::IsInTryBlock()) {
// use the previous signal handler
if (asigacthandler.sa_flags & SA_SIGINFO) {
void (*aCurInfoHandle)(int, siginfo_t *, void *) = asigacthandler.sa_sigaction;
+
+ siginfo_t * aSigInfo = NULL;
+#ifdef SA_SIGINFO
+ aSigInfo = theSigInfo;
+#endif
+
if (aSigInfo) {
switch (aSigInfo->si_signo) {
case SIGFPE: