blob: d664d47a3ccce84c065c3e3bf63c1bed6f921125 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- gpilotd/gpilotd.c 2004-06-26 21:35:21.110836648 -0400
+++ gpilotd/gpilotd.c.new 2004-06-26 21:41:14.703082456 -0400
@@ -858,6 +858,11 @@
/* Check /proc/bus/usb/devices for a usb device */
f = fopen ("/proc/bus/usb/devices", "r");
+ if (f == NULL) {
+ g_warning("/proc/bus/usb/devices: %s\n", strerror(errno));
+ return FALSE;
+ }
+
while (fgets (line, 255, f) != NULL && !visor_exists) {
if (line[0] != 'P')
continue;
|