Fix return code of cgroup_read_stats_XXX iterator.

Signed-off-by: Jan Safranek <[email protected]>
---

 src/api.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/api.c b/src/api.c
index abe8fc4..5409c9c 100644
--- a/src/api.c
+++ b/src/api.c
@@ -2805,7 +2805,7 @@ static int cg_read_stat(FILE *fp, struct cgroup_stat 
*cgroup_stat)
 
 out_free:
        free(line);
-       return 0;
+       return ret;
 }
 
 int cgroup_read_stats_end(void **handle)


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to