]> sigrok.org Git - libsigrok.git/commitdiff
hameg-hmo: fix potential NULL dereference
authorGerhard Sittig <redacted>
Sat, 10 Feb 2018 11:20:05 +0000 (12:20 +0100)
committerGerhard Sittig <redacted>
Sat, 10 Feb 2018 14:34:20 +0000 (15:34 +0100)
Check for successful allocation before accessing struct members. Return
with an error from device initialization when allocation fails.

This was reported by clang's scan-build.


No differences found