OK, pkg_attr == 0 is special and indicates the end of a stdargs arg
list.  According to the manual that's not even guarranteed
behaviour...
msg needs initializing there.