diff options
-rw-r--r-- | tests/fs-tests/integrity/integck.c | 4 |
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) |