On 11/19/2010 04:14 PM, Ivana Hutarova Varekova wrote:
> if a hierarchy with more controllers is parsed before hierarchy with less
> controllers as the last two hierarchies, then the output of cgsnapshot is
> broken - test is missing
>
> Signed-off-by: Ivana Hutarova Varekova<[email protected]>
Acked-by: Jan Safranek <[email protected]>
> ---
>
> src/tools/cgsnapshot.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/src/tools/cgsnapshot.c b/src/tools/cgsnapshot.c
> index 198fdd7..b5710a3 100644
> --- a/src/tools/cgsnapshot.c
> +++ b/src/tools/cgsnapshot.c
> @@ -553,9 +553,11 @@ static int parse_controllers(cont_name_t
> cont_names[CG_CONTROLLER_MAX],
> ret = cgroup_get_controller_next(&handle,&controller);
> }
>
> - if (max != 0)
> + if (max != 0) {
> + (controllers[max])[0] = '\0';
> ret = display_controller_data(
> controllers, program_name);
> + }
>
> cgroup_get_controller_end(&handle);
> if (ret != ECGEOF)
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> Libcg-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libcg-devel
>
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel