Credit goess to "cppcheck"

Signed-off-by: Thomas Jarosch <[email protected]>
---
 drivers/usb-common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb-common.c b/drivers/usb-common.c
index e51f3cf..e459872 100644
--- a/drivers/usb-common.c
+++ b/drivers/usb-common.c
@@ -116,7 +116,7 @@ int USBNewExactMatcher(USBDeviceMatcher_t **matcher, 
USBDevice_t *hd)
        USBDevice_t             *data;
 
        m = malloc(sizeof(*m));
-       if (!matcher) {
+       if (!m) {
                return -1;
        }
 
-- 
1.7.4.4


_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev

Reply via email to