[AdgTrail] Avoid recursion caused by bad callbacks
commited9295ce42f7c41ec10e6aeebfa0e52c071e186b
authorNicola Fontana <ntd@entidi.it>
Fri, 29 Jan 2010 21:01:10 +0000 (29 22:01 +0100)
committerNicola Fontana <ntd@entidi.it>
Fri, 29 Jan 2010 21:01:10 +0000 (29 22:01 +0100)
treee82f16ef8f2e9d941e0597654a5281c2a4aef5bd
parentf8412ef108c4eb35ada851370e5f46e93f11ffb1
[AdgTrail] Avoid recursion caused by bad callbacks

If the user provided callback tries to access the CPML path by
explicitely or implicitely generated call to adg_trail_cpml_path(),
there will be a mutual recursion between the callback and the
cpml_path() virtual method.

Added a guard flag to adg_trail_cpml_path() to avoid this situation.
adg/adg-trail-private.h
adg/adg-trail.c