summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-05-29 13:24:36 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-05-29 13:51:47 -0400
commit9959d4399a47965721a6f94139024db12257f14f (patch)
treed1379c3384a475a569f904d04f5e317857482a00 /pp_sys.c
parent14081f883633f2e819fa9af1ab1da37ee57664b9 (diff)
downloadperl-9959d4399a47965721a6f94139024db12257f14f.tar.gz
Followup to 316ebaf (aka perl #121894).
Adding asserts to more spots. Fix for Coverity perl5 CIDs 28962,28968,28969: CID ...: Dereference after null check (FORWARD_NULL) var_deref_op: Dereferencing null pointer p->q
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 1ee3ba2070..8151607892 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3406,6 +3406,7 @@ PP(pp_fttext)
const char *file;
int fd;
+ assert(sv);
sv_setpv(PL_statname, SvPV_nomg_const_nolen(sv));
really_filename:
file = SvPVX_const(PL_statname);