| Submitter | Juan Quintela |
|---|---|
| Date | Jan. 19, 2010, 11:56 p.m. |
| Message ID | <36ef64634c0f27d079bef67f7d2cbc592640edc8.1263944807.git.quintela@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/43250/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/usb-linux.c b/usb-linux.c index 88728e9..be1d979 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)