GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add missing libusb_exit on an error condition · Raghuvardhan-Reddy78/libusb@18a5f99

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • examples
    • listdevs.c
  • libusb
    • version_nano.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎examples/listdevs.c‎

Copy file name to clipboardExpand all lines: examples/listdevs.c
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ int main(void)
6060
return r;
6161

6262
cnt = libusb_get_device_list(NULL, &devs);
63-
if (cnt < 0)
63+
if (cnt < 0){
64+
libusb_exit(NULL);
6465
return (int) cnt;
66+
}
6567

6668
print_devs(devs);
6769
libusb_free_device_list(devs, 1);
Collapse file

‎libusb/version_nano.h‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define LIBUSB_NANO 11321
1+
#define LIBUSB_NANO 11322

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.