bcc was issuing a warning about this line in Perl_sv_2cv, so tweak it
authorNicholas Clark <nick@ccl4.org>
Sat, 4 Feb 2006 22:51:17 +0000 (22:51 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 4 Feb 2006 22:51:17 +0000 (22:51 +0000)
to keep it happy.

p4raw-id: //depot/perl@27086

sv.c

diff --git a/sv.c b/sv.c
index a915dd9..752dff0 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -6992,8 +6992,11 @@ Perl_sv_2cv(pTHX_ SV *sv, HV **st, GV **gvp, I32 lref)
     GV *gv = NULL;
     CV *cv = NULL;
 
-    if (!sv)
-       return *st = NULL, *gvp = NULL, NULL;
+    if (!sv) {
+       *st = NULL;
+       *gvp = NULL;
+       return NULL;
+    }
     switch (SvTYPE(sv)) {
     case SVt_PVCV:
        *st = CvSTASH(sv);