Check return value of cgroup_read_stats_begin.

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

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

diff --git a/src/tools/cgget.c b/src/tools/cgget.c
index 661011b..de1a7dc 100644
--- a/src/tools/cgget.c
+++ b/src/tools/cgget.c
@@ -50,7 +50,7 @@ static int display_one_record(char *name, struct 
cgroup_controller *group_contro
                void *handle;
                struct cgroup_stat stat;
 
-               cgroup_read_stats_begin(group_controller->name,
+               ret = cgroup_read_stats_begin(group_controller->name,
                        "/", &handle, &stat);
                if (ret != 0) {
                        fprintf(stderr, "stats read failed\n");


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