This check doesn't work as libpd_start_message, like most C functions, returns 0 on success. Fixing it now. Also, I'm simplifying this into one line. One other note, in the future, please try to match the overall coding style when submitting a PR. For instance, we don't have spaces between "if" and the open paren.