summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2008-06-17 13:54:23 +0300
committerAdrian Hunter <ext-adrian.hunter@nokia.com>2008-06-17 13:54:23 +0300
commitb1da3d54f1dd2e1dc0316480cb0b6376d37e1cb5 (patch)
treeb11d9fd1c7be12ff5fbb96fe60796d3ffbf2fa20 /tests
parentde93bb7da79427325b40568acd769987779cc3e5 (diff)
fs-tests: fix rename bug in integrity test
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/fs-tests/integrity/integck.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 4009c2a..f1a544a 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -1537,12 +1537,16 @@ static void rename_entry(struct dir_entry_info *entry)
free(path);
free(name);
free(to);
+ path = NULL;
continue;
}
}
break;
}
+ if (!path)
+ return;
+
ret = rename(path, to);
if (ret == -1) {
if (errno == ENOSPC)