]> sigrok.org Git - libsigrok.git/commit
hantek-6xxx: fix potential NULL dereference
authorGerhard Sittig <redacted>
Fri, 9 Feb 2018 18:03:06 +0000 (19:03 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:37:39 +0000 (21:37 +0100)
commite93ca8a4d66a42517a21f6c34bba7cd73dc042d8
tree423fb5fee6e5ca5f976ed6a8be4c0b0ff88c4c2c
parentb0e80e9aa9a7398fa01a7949deb17640ca3c7d47
hantek-6xxx: fix potential NULL dereference

Check pointers' validity before dereferencing.

This was reported by clang's scan-build.
src/hardware/hantek-6xxx/api.c