In Perl_magic_setsig(), clarify the scope of a block that interacts with #ifdef.
Nicholas Clark [Tue, 19 May 2009 15:54:13 +0000 (17:54 +0200)]
mg.c

diff --git a/mg.c b/mg.c
index 276e13d..f6b6d87 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -1519,15 +1519,14 @@ Perl_magic_setsig(pTHX_ SV *sv, MAGIC *mg)
        }
     }
     else if (strEQ(s,"DEFAULT") || !*s) {
-       if (i)
+       if (i) {
 #ifdef FAKE_DEFAULT_SIGNAL_HANDLERS
-         {
            PL_sig_defaulting[i] = 1;
            (void)rsignal(i, PL_csighandlerp);
-         }
 #else
            (void)rsignal(i, (Sighandler_t) SIG_DFL);
 #endif
+       }
     }
     else {
        /*