On Tue, Nov 16, 2010 at 12:11 PM, Jan Safranek <[email protected]> wrote:
> Just store the error into 'result' on error, 'ret' is not used.
>
>
> Signed-off-by: Jan Safranek <[email protected]>
Acked-by: Dhaval Giani <[email protected]>

> ---
>
>  src/tools/cgget.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/src/tools/cgget.c b/src/tools/cgget.c
> index 1d3ad55..87cdc8e 100644
> --- a/src/tools/cgget.c
> +++ b/src/tools/cgget.c
> @@ -381,8 +381,10 @@ int main(int argc, char *argv[])
>
>                ret = display_controller_values(controllers, c_number, argv[i],
>                        argv[0], mode - (mode & MODE_SHOW_ALL_CONTROLLERS));
> -               if (ret)
> +               if (ret) {
> +                       result = ret;
>                        goto err;
> +               }
>
>                if (mode & MODE_SHOW_ALL_CONTROLLERS) {
>                        ret = display_all_controllers(argv[i], argv[0], mode);
>
>
> ------------------------------------------------------------------------------
> 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
>

------------------------------------------------------------------------------
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

Reply via email to