Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2016 15:08:31 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298214 - head/lib/libipsec
Message-ID:  <201604181508.u3IF8V0t000709@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604181508.u3IF8V0t000709>