Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit 23a11fc

Browse files
rmackay9Andrew Tridgell
authored andcommitted
device: initialise device id
1 parent 1a32677 commit 23a11fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/drivers/device/device.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Device::Device(const char *name,
9797

9898
/* setup a default device ID. When bus_type is UNKNOWN the
9999
other fields are invalid */
100+
_device_id.devid = 0;
100101
_device_id.devid_s.bus_type = DeviceBusType_UNKNOWN;
101102
_device_id.devid_s.bus = 0;
102103
_device_id.devid_s.address = 0;

0 commit comments

Comments
 (0)