summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-04-17 12:47:39 +0000
committerNicholas Clark <nick@ccl4.org>2008-04-17 12:47:39 +0000
commiteff494dd14cc5afe1a584bb7e0000a62b81acc19 (patch)
treed8fe8284ac63f47c43d9d4126f903c54e64f778c /pp_sys.c
parent37698ac13e6c088d690d4d7ee5635c83f340f956 (diff)
downloadperl-eff494dd14cc5afe1a584bb7e0000a62b81acc19.tar.gz
Perl_gv_fetchmethod{,_autoload,_flags} are actually never* called with
a non-NULL stash. So change the parameter to NN. * Fixed the one really obscure hitherto untested case. p4raw-id: //depot/perl@33706
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 98a958dc81..59439e9f17 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -942,7 +942,7 @@ PP(pp_dbmopen)
PUTBACK;
require_pv("AnyDBM_File.pm");
SPAGAIN;
- if (!(gv = gv_fetchmethod(stash, "TIEHASH")))
+ if (!stash || !(gv = gv_fetchmethod(stash, "TIEHASH")))
DIE(aTHX_ "No dbm on this machine");
}