projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
103a105
)
We shouldn't try to decrement the refcount of PL_warnhook
Rafael Garcia-Suarez [Mon, 7 Aug 2006 14:10:15 +0000 (14:10 +0000)]
if it has been set to PERL_WARNHOOK_FATAL.
p4raw-id: //depot/perl@28669
mg.c
patch
|
blob
|
blame
|
history
diff --git
a/mg.c
b/mg.c
index
8e00fb2
..
3f2fd5a
100644
(file)
--- a/
mg.c
+++ b/
mg.c
@@
-1384,7
+1384,8
@@
Perl_magic_setsig(pTHX_ SV *sv, MAGIC *mg)
Perl_croak(aTHX_ "No such hook: %s", s);
i = 0;
if (*svp) {
- to_dec = *svp;
+ if (*svp != PERL_WARNHOOK_FATAL)
+ to_dec = *svp;
*svp = NULL;
}
}