diff options
-rw-r--r-- | usb-linux.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usb-linux.c b/usb-linux.c index 5619b30600..1aaa5950f5 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1201,9 +1201,8 @@ static int usb_host_read_file(char *line, size_t line_size, const char *device_f device_file); f = fopen(filename, "r"); if (f) { - fgets(line, line_size, f); + ret = fgets(line, line_size, f) != NULL; fclose(f); - ret = 1; #if 0 } else { if (mon) |