aboutsummaryrefslogtreecommitdiffstats
path: root/prog/any.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/any.go')
-rw-r--r--prog/any.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/prog/any.go b/prog/any.go
index b99e64932..0a0fdddf5 100644
--- a/prog/any.go
+++ b/prog/any.go
@@ -126,7 +126,7 @@ func (target *Target) isAnyRes(name string) bool {
func (target *Target) CallContainsAny(c *Call) (res bool) {
ForeachArg(c, func(arg Arg, ctx *ArgCtx) {
- if target.isAnyPtr(arg.Type()) {
+ if target.isAnyPtr(arg.Type()) || res {
res = true
ctx.Stop = true
}
@@ -136,7 +136,7 @@ func (target *Target) CallContainsAny(c *Call) (res bool) {
func (target *Target) ArgContainsAny(arg0 Arg) (res bool) {
ForeachSubArg(arg0, func(arg Arg, ctx *ArgCtx) {
- if target.isAnyPtr(arg.Type()) {
+ if target.isAnyPtr(arg.Type()) || res {
res = true
ctx.Stop = true
}