OLD | NEW |
---|---|
(Empty) | |
1 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.
| |
2 index 38f6753..21d04c0 100644 | |
3 --- a/third_party/hidapi/hidapi_linux.c | |
4 +++ b/third_party/hidapi/hidapi_linux.c | |
5 @@ -305,7 +305,7 @@ static int get_device_string(hid_device *dev, enum device_st ring_id key, wchar_t | |
6 const char *str; | |
7 const char *key_str = NULL; | |
8 | |
9 - if (key >= 0 && key < DEVICE_STRING_COUN T) { | |
10 + if (key < DEVICE_STRING_COUNT) { | |
11 key_str = device_string_names[ke y]; | |
12 } else { | |
13 ret = -1; | |
OLD | NEW |