diff options
author | araujo <araujo@FreeBSD.org> | 2016-05-16 01:12:56 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-05-16 01:12:56 +0000 |
commit | d05da56e548f44b6c4811e62c9484b6c3acccd49 (patch) | |
tree | 969ec9037a7190bf4d7951dcc63877ba3b1c46ac /usr.sbin | |
parent | 9d540431bfac4d4dac05cb47e2b78e32d0b0f101 (diff) | |
download | FreeBSD-src-d05da56e548f44b6c4811e62c9484b6c3acccd49.zip FreeBSD-src-d05da56e548f44b6c4811e62c9484b6c3acccd49.tar.gz |
Use NULL instead of 0 for pointers.
MFC after: 2 weeks.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/kldxref/kldxref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c index 01b7c65..a5185b7 100644 --- a/usr.sbin/kldxref/kldxref.c +++ b/usr.sbin/kldxref/kldxref.c @@ -494,7 +494,7 @@ parse_entry(struct mod_metadata *md, const char *cval, 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'; |