Skip to content

Commit

Permalink
Ensure handle_status is set to UNINITIALIZED.
Browse files Browse the repository at this point in the history
  • Loading branch information
bramp committed Oct 8, 2011
1 parent f040d39 commit 7eaca1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/device.cc
Expand Up @@ -47,6 +47,7 @@ namespace NodeUsb {

Device::Device(libusb_device* _device) {
device_container = (nodeusb_device_container*)malloc(sizeof(nodeusb_device_container));
device_container->handle_status = UNINITIALIZED;
device_container->device = _device;
}

Expand Down

0 comments on commit 7eaca1c

Please sign in to comment.