summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/trash/src/trash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/trash/src/trash.c b/xlators/features/trash/src/trash.c
index 4eecaf241c6..00e99b6266f 100644
--- a/xlators/features/trash/src/trash.c
+++ b/xlators/features/trash/src/trash.c
@@ -218,7 +218,8 @@ append_time_stamp (char *name)
void
trash_local_wipe (trash_local_t *local)
{
- GF_VALIDATE_OR_GOTO ("trash", local, out);
+ if (!local)
+ goto out;
loc_wipe (&local->loc);
loc_wipe (&local->newloc);