Author: pfg
Date: Mon Apr 18 15:08:31 2016
New Revision: 298214
URL: https://svnweb.freebsd.org/changeset/base/298214
Log:
libipsec: use NULL instead of zero for pointers.
Modified:
head/lib/libipsec/pfkey.c
Modified: head/lib/libipsec/pfkey.c
==============================================================================
--- head/lib/libipsec/pfkey.c Mon Apr 18 15:05:48 2016 (r298213)
+++ head/lib/libipsec/pfkey.c Mon Apr 18 15:08:31 2016 (r298214)
@@ -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;
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"