link_info: fix undefined variable