[Jifty-commit] r5670 - B-OPCheck

Jifty commits jifty-commit at lists.jifty.org
Mon Aug 4 15:12:32 EDT 2008


Author: nothingmuch
Date: Mon Aug  4 15:12:29 2008
New Revision: 5670

Modified:
   B-OPCheck/OPCheck.xs

Log:
check sub before dereferencing

Modified: B-OPCheck/OPCheck.xs
==============================================================================
--- B-OPCheck/OPCheck.xs	(original)
+++ B-OPCheck/OPCheck.xs	Mon Aug  4 15:12:29 2008
@@ -131,7 +131,7 @@
             int i;
             for (i = 0; i <= av_len(subs); ++i) {
                 SV **sub = av_fetch(subs, i, 0);
-                if (SvOK(*sub)) {
+                if (sub && SvOK(*sub)) {
                     /* FIXME replace? before? after? */
                     OPCHECK_call_ck(aTHX_ *sub, o);
                 }


More information about the Jifty-commit mailing list