On 10/08/2013 08:10 AM, Ivana Hutarova Varekova wrote: > cgroup_init should stop parsing of named hierarchy if there is a bug. > > Signed-off-by: Ivana Hutarova Varekova <varek...@redhat.com> Acked-by: Peter Schiffer <pschi...@redhat.com> > --- > > src/api.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/src/api.c b/src/api.c > index d0eb10a..f78704a 100644 > --- a/src/api.c > +++ b/src/api.c > @@ -993,6 +993,8 @@ int cgroup_init(void) > > if (mntopt) { > mntopt = strtok_r(mntopt, ",", &strtok_buffer); > + if (!mntopt) > + continue; > /* > * Check if it is a duplicate > */ > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk > _______________________________________________ > Libcg-devel mailing list > Libcg-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libcg-devel >
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel