From 7db082583f72598e2118553faf1ba3206d7c3ee7 Mon Sep 17 00:00:00 2001 From: Ondrej Čerman Date: Sat, 10 Aug 2019 09:30:17 +0200 Subject: usb: bug fix for usb.ids file search --- hardinfo/usb_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hardinfo') diff --git a/hardinfo/usb_util.c b/hardinfo/usb_util.c index c908eec4..a758026f 100644 --- a/hardinfo/usb_util.c +++ b/hardinfo/usb_util.c @@ -325,7 +325,7 @@ void find_usb_ids_file() { }; int n; for(n = 0; file_search_order[n]; n++) { - if (!access(file_search_order[n], R_OK)) + if (!usb_ids_file && !access(file_search_order[n], R_OK)) usb_ids_file = file_search_order[n]; else g_free(file_search_order[n]); -- cgit v1.2.3