linux: freebsd: do check on proper pointerlibserialport-unreleased
commit0c3f38b81b8968d78806a7a41ed351a870882b5e
authorWolfram Sang <wsa@the-dreams.de>
Fri, 19 Feb 2016 21:25:00 +0000 (19 22:25 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Sun, 28 Feb 2016 17:01:25 +0000 (28 18:01 +0100)
tree2909dddaf65a2727b7963fa602337ef644591c62
parent3fcdc9f7d5aa9bbae3041d80ab50b83e9bef182d
linux: freebsd: do check on proper pointer

We want to check here if we added something to the list, not if the
function argument was valid. Problem spotted by Coverity, CID 50754.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
freebsd.c
linux.c