* Ivana Varekova <[email protected]> [2010-09-06 12:30:22]:
> This patch adds the missing test to cgroup_read_stats_end
>
> Sorry for the misstake.
> Fixed the test - it should return the error
>
> Signed-off-by: Ivana Hutarova Varekova <[email protected]>
> ---
>
> src/api.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/src/api.c b/src/api.c
> index 492fb51..e56776c 100644
> --- a/src/api.c
> +++ b/src/api.c
> @@ -2876,6 +2876,9 @@ int cgroup_read_stats_end(void **handle)
> return ECGINVAL;
>
> fp = (FILE *)*handle;
> + if (fp == NULL)
> + return ECGINVAL;
> +
Something is a miss, the code does not seem correctly formatted.
--
Three Cheers,
Balbir
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel