You're right, current implementation don't care about NULL at the end. I'll fix comment.