Output arguments in modules must be set to NULL (if supplied) before the main state-machine is called, to guarantee they are null even on failure of init for example, since successive modules do depend on this being NULL if there is no content or a failure to deliver it.