summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/file-set-trans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/file-set-trans.c b/libdiskfs/file-set-trans.c
index e60f0fe4..3729fdad 100644
--- a/libdiskfs/file-set-trans.c
+++ b/libdiskfs/file-set-trans.c
@@ -162,8 +162,8 @@ diskfs_S_file_set_translator (struct protid *cred,
/* Set active translator */
if (active_flags & FS_TRANS_SET)
{
- if (existing != MACH_PORT_NULL)
- fshelp_set_control (&np->translator, existing);
+ if (active != MACH_PORT_NULL)
+ fshelp_set_control (&np->translator, active);
else
/* Should have been cleared above. */
assert (np->translator.control == MACH_PORT_NULL);