Date: Mon, 16 May 2016 01:12:56 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299878 - head/usr.sbin/kldxref Message-ID: <201605160112.u4G1CuXx063525@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Mon May 16 01:12:56 2016 New Revision: 299878 URL: https://svnweb.freebsd.org/changeset/base/299878 Log: Use NULL instead of 0 for pointers. MFC after: 2 weeks. Modified: head/usr.sbin/kldxref/kldxref.c Modified: head/usr.sbin/kldxref/kldxref.c ============================================================================== --- head/usr.sbin/kldxref/kldxref.c Mon May 16 01:11:02 2016 (r299877) +++ head/usr.sbin/kldxref/kldxref.c Mon May 16 01:12:56 2016 (r299878) @@ -494,7 +494,7 @@ parse_entry(struct mod_metadata *md, con ptr = *(char **)(walker + elt->pe_offset); buffer[0] = '\0'; - if (ptr != 0) { + if (ptr != NULL) { EF_SEG_READ(ef, (Elf_Off)ptr, sizeof(buffer), buffer); buffer[sizeof(buffer) - 1] = '\0';
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605160112.u4G1CuXx063525>