Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libusbhid compare pointer against NULL instead of 0



details:   https://anonhg.NetBSD.org/src/rev/9ef0e8032db6
branches:  trunk
changeset: 812752:9ef0e8032db6
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Dec 31 20:35:21 2015 +0000

description:
compare pointer against NULL instead of 0

diffstat:

 lib/libusbhid/descr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cc09e1a9ee5c -r 9ef0e8032db6 lib/libusbhid/descr.c
--- a/lib/libusbhid/descr.c     Thu Dec 31 20:11:32 2015 +0000
+++ b/lib/libusbhid/descr.c     Thu Dec 31 20:35:21 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: descr.c,v 1.5 2007/04/11 20:56:20 plunky Exp $ */
+/*     $NetBSD: descr.c,v 1.6 2015/12/31 20:35:21 jakllsch Exp $       */
 
 /*
  * Copyright (c) 1999 Lennart Augustsson <augustss%NetBSD.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: descr.c,v 1.5 2007/04/11 20:56:20 plunky Exp $");
+__RCSID("$NetBSD: descr.c,v 1.6 2015/12/31 20:35:21 jakllsch Exp $");
 
 #include <sys/types.h>
 
@@ -63,7 +63,7 @@
        report_desc_t r;
 
        r = malloc(sizeof(*r) + size);
-       if (r == 0) {
+       if (r == NULL) {
                errno = ENOMEM;
                return (NULL);
        }



Home | Main Index | Thread Index | Old Index