Resolve warning: 'hn' may be used uninitialized in this function.