summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>1998-06-03 06:22:19 -0500
committerGurusamy Sarathy <gsar@cpan.org>1998-06-10 06:22:54 +0000
commit56ee16601913744d6296171b01432040a63238f8 (patch)
tree751d5ac88bd8dda146c7ef0cf3b922b358cc4974 /pp_sys.c
parent9b604809b69cab4edbbec886a40fb8a044651368 (diff)
downloadperl-56ee16601913744d6296171b01432040a63238f8.tar.gz
fix for undef as last arg to setsockopt
Message-ID: <19980603112219.B7638@asic.sc.ti.com> p4raw-id: //depot/perl@1093
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 ad9eee1259..1814a59e15 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -1968,7 +1968,7 @@ PP(pp_ssockopt)
buf = SvPV(sv, na);
len = na;
}
- else if (SvOK(sv)) {
+ else {
aint = (int)SvIV(sv);
buf = (char*)&aint;
len = sizeof(int);