Change 27476 by [EMAIL PROTECTED] on 2006/03/11 21:41:20
Possible NULL pointer reference found by Coverity checks.
Affected files ...
... //depot/perl/op.c#784 edit
Differences ...
==== //depot/perl/op.c#784 (text) ====
Index: perl/op.c
--- perl/op.c#783~27475~ 2006-03-11 12:57:26.000000000 -0800
+++ perl/op.c 2006-03-11 13:41:20.000000000 -0800
@@ -4237,10 +4237,10 @@
break;
case OP_SASSIGN:
- if (k1->op_type == OP_READDIR
+ if (k1 && (k1->op_type == OP_READDIR
|| k1->op_type == OP_GLOB
|| (k1->op_type == OP_NULL && k1->op_targ == OP_GLOB)
- || k1->op_type == OP_EACH)
+ || k1->op_type == OP_EACH))
expr = newUNOP(OP_DEFINED, 0, expr);
break;
}
End of Patch.