From: Gerhard Sittig Date: Sat, 10 Feb 2018 11:20:05 +0000 (+0100) Subject: hameg-hmo: fix potential NULL dereference X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;ds=inline;h=eac9fcd2685a0068a9c9884a2b96629088a20ca5;hp=eac9fcd2685a0068a9c9884a2b96629088a20ca5;p=libsigrok.git hameg-hmo: fix potential NULL dereference 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. ---