shithub: mc

Download patch

ref: a252f51ddd3d85944a26a2f84e5d885eed504b98
parent: 7c6f76e698953ccd019ce6ace8dc47d6c07f742f
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Mar 10 18:24:18 EDT 2015

Fix recursive case.

    We don't want to infinitely recurse -- pass the visited set
    down in call cases.

--- a/parse/type.c
+++ b/parse/type.c
@@ -370,7 +370,7 @@
             break;
         default:
             for (i = 0; i < t->nsub; i++)
-                if (hasparams(t->sub[i]))
+                if (hasparamsrec(t->sub[i], visited))
                     return 1;
             break;
     }