summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-12-31 04:07:30 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-12-31 04:07:30 +0000
commitb8fb19a05702431b353055a718f2de5401350912 (patch)
treef51004f64db047dbd2d783bc01e294df3690a4c5
parentd0e03ced81ad659881f673d0e9c95c31e7aaae0d (diff)
keep 'perl -T -P' from dumping core
-rw-r--r--gnu/usr.bin/perl/taint.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/perl/taint.c b/gnu/usr.bin/perl/taint.c
index 6776272782c..cd3ec8e2813 100644
--- a/gnu/usr.bin/perl/taint.c
+++ b/gnu/usr.bin/perl/taint.c
@@ -45,6 +45,9 @@ taint_env()
NULL
};
+ if (!envgv)
+ return;
+
#ifdef VMS
int i = 0;
char name[10 + TYPE_DIGITS(int)] = "DCL$PATH";