Chromium Code Reviews| Index: third_party/hidapi/hidapi_linux.c.patch |
| diff --git a/third_party/hidapi/hidapi_linux.c.patch b/third_party/hidapi/hidapi_linux.c.patch |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f8d2a062ee2748738719cf87026bf175d4562f83 |
| --- /dev/null |
| +++ b/third_party/hidapi/hidapi_linux.c.patch |
| @@ -0,0 +1,13 @@ |
| +diff --git a/third_party/hidapi/hidapi_linux.c b/third_party/hidapi/hidapi_linux.c |
|
Kees Cook
2013/12/04 20:49:36
What's the purpose of this patch? Is this just sil
Bei Zhang
2013/12/10 22:24:11
Yes, it is.
|
| +index 38f6753..21d04c0 100644 |
| +--- a/third_party/hidapi/hidapi_linux.c |
| ++++ b/third_party/hidapi/hidapi_linux.c |
| +@@ -305,7 +305,7 @@ static int get_device_string(hid_device *dev, enum device_string_id key, wchar_t |
| + const char *str; |
| + const char *key_str = NULL; |
| + |
| +- if (key >= 0 && key < DEVICE_STRING_COUNT) { |
| ++ if (key < DEVICE_STRING_COUNT) { |
| + key_str = device_string_names[key]; |
| + } else { |
| + ret = -1; |