The loop is broken in both if branches above, so it could never reach this
line -> remove it.

Signed-off-by: Jan Safranek <jsafr...@redhat.com>
---

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

diff --git a/src/api.c b/src/api.c
index d68a4c8..52d6fe7 100644
--- a/src/api.c
+++ b/src/api.c
@@ -3634,7 +3634,6 @@ static int cg_get_procname_from_proc_cmdline(pid_t pid,
                        ret = 0;
                        break;
                }
-               len = 0;
        }
        fclose(f);
        return ret;


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to