projects
/
p5sagit/Devel-Declare.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
0be3860
)
Don't segfault if HvNAME(PL_curstash) == NULL.
Florian Ragwitz [Sun, 19 Oct 2008 17:23:19 +0000 (17:23 +0000)]
Declare.xs
patch
|
blob
|
blame
|
history
diff --git
a/Declare.xs
b/Declare.xs
index
db84e25
..
78177fb
100644
(file)
--- a/
Declare.xs
+++ b/
Declare.xs
@@
-51,6
+51,9
@@
int dd_is_declarator(pTHX_ char* name) {
/* $declarators{$current_package_name} */
+ if (!HvNAME(PL_curstash))
+ return -1;
+
is_declarator_pack_ref = hv_fetch(is_declarator, HvNAME(PL_curstash),
strlen(HvNAME(PL_curstash)), FALSE);