Module Name: src
Committed By: jakllsch
Date: Thu Dec 31 20:35:21 UTC 2015
Modified Files:
src/lib/libusbhid: descr.c
Log Message:
compare pointer against NULL instead of 0
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libusbhid/descr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libusbhid/descr.c
diff -u src/lib/libusbhid/descr.c:1.5 src/lib/libusbhid/descr.c:1.6
--- src/lib/libusbhid/descr.c:1.5 Wed Apr 11 20:56:20 2007
+++ src/lib/libusbhid/descr.c Thu Dec 31 20:35:21 2015
@@ -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 <[email protected]>
@@ -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 @@ hid_use_report_desc(const uint8_t *data,
report_desc_t r;
r = malloc(sizeof(*r) + size);
- if (r == 0) {
+ if (r == NULL) {
errno = ENOMEM;
return (NULL);
}