[CRIU] [PATCH 3/3] files-reg: Fix rm_parent_dirs() counter

Kirill Tkhai ktkhai at virtuozzo.com
Mon Feb 8 05:03:45 PST 2016


Looks like it's a leftover from one of intermediate versions..

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 files-reg.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files-reg.c b/files-reg.c
index 1521ffe..1c4d7aa 100644
--- a/files-reg.c
+++ b/files-reg.c
@@ -1211,7 +1211,7 @@ static void rm_parent_dirs(int mntns_root, char *path, int count)
 {
 	char *p, *prev = NULL;
 
-	if (!count++)
+	if (!count)
 		return;
 
 	while (count--) {



More information about the CRIU mailing list