Skip to content

Commit

Permalink
Merge pull request #102 from tomaszduda23/patch-1
Browse files Browse the repository at this point in the history
Fix uninitialized pointer
  • Loading branch information
arpruss authored Dec 17, 2021
2 parents 90638a0 + 7783e79 commit 88cef4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion USBHID.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class USBHID {
// baseChunk holds any explicitly specified report descriptor that
// overrides any report descriptors from the chain of registered profiles
struct usb_chunk baseChunk = { 0, 0, 0 };
HIDReporter* profiles;
HIDReporter* profiles = nullptr;
public:
static bool init(USBHID* me);
// add a report to the list ; if always is false, then it only works if autoRegister is true
Expand Down

0 comments on commit 88cef4a

Please sign in to comment.