libipsec: use NULL instead of zero for pointers.

This commit is contained in:
pfg 2016-04-18 15:08:31 +00:00
parent dd20a579e1
commit 37a227e93c

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;
}