diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-02-22 23:17:47 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-02-22 23:17:47 +0100 |
commit | 08d0d8ab11be611f4baf746cfb6ff7791962f494 (patch) | |
tree | 70a57bd0eb838277d56a86391bba3e8c3c84f87c /perl.c | |
parent | 7ffdaae673354e3b3ebbecaecdc009fee9fa90e7 (diff) | |
download | perl-08d0d8ab11be611f4baf746cfb6ff7791962f494.tar.gz |
For S_incpush(), dir is never NULL, and len is always > 0.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4358,13 +4358,13 @@ S_incpush(pTHX_ const char *const dir, STRLEN len, U32 flags) const U8 canrelocate = (U8)flags & INCPUSH_CAN_RELOCATE; const U8 unshift = (U8)flags & INCPUSH_UNSHIFT; const U8 push_basedir = (flags & INCPUSH_NOT_BASEDIR) ? 0 : 1; - AV *inc; + AV *const inc = GvAVn(PL_incgv); - if (!dir || !*dir) - return; - - inc = GvAVn(PL_incgv); + PERL_ARGS_ASSERT_INCPUSH; + assert(len > 0); + /* Could remove this vestigial extra block, if we don't mind a lot of + re-indenting diff noise. */ { SV *libdir; /* Change 20189146be79a0596543441fa369c6bf7f85103f, to fix RT#6665, |