diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-18 16:11:35 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-18 16:11:35 +0000 |
commit | 829372d3895763a8b826b343859a01ae699a641e (patch) | |
tree | e8aeefa0b0896d4be14bc1261eef415ba7e8ac33 /perl.c | |
parent | f20b29985da982221016a5e2fdf979d5ba37b5cf (diff) | |
download | perl-829372d3895763a8b826b343859a01ae699a641e.tar.gz |
Don't create local variables validarg and fdscript if they aren't going
to be used.
p4raw-id: //depot/perl@33002
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1677,7 +1677,9 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit) char **argv = PL_origargv; const char *scriptname = NULL; VOL bool dosearch = FALSE; +#ifdef DOSUID const char *validarg = ""; +#endif register SV *sv; register char c; const char *cddir = NULL; @@ -2031,8 +2033,11 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit) { bool suidscript = FALSE; - const int fdscript - = open_script(scriptname, dosearch, &suidscript, &rsfp); + +#ifdef DOSUID + const int fdscript = +#endif + open_script(scriptname, dosearch, &suidscript, &rsfp); validate_suid(validarg, scriptname, fdscript, suidscript, linestr_sv, rsfp); |