libipsec: use NULL instead of zero for pointers.

This commit is contained in:
Pedro F. Giffuni 2016-04-18 15:08:31 +00:00
parent 46266845a4
commit 9929cc5dd0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298214

View file

@ -1645,7 +1645,7 @@ pfkey_recv(so)
/* read real message */
reallen = PFKEY_UNUNIT64(buf.sadb_msg_len);
if ((newmsg = CALLOC(reallen, struct sadb_msg *)) == 0) {
if ((newmsg = CALLOC(reallen, struct sadb_msg *)) == NULL) {
__ipsec_set_strerror(strerror(errno));
return NULL;
}