There's no need to check whether 'filename' is nil - it won't ever be... So you can just use MCValueAssign(filename, *t_filename) here.