NO-JIRA: Fixed RHEL5 build errors.

Set a value for err in pn_data_appendn().