summaryrefslogtreecommitdiff
path: root/ltunify.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltunify.c')
-rw-r--r--ltunify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltunify.c b/ltunify.c
index d770a8b..63a5316 100644
--- a/ltunify.c
+++ b/ltunify.c
@@ -952,7 +952,7 @@ static int validate_args(int argc, char **argv, char ***args, char **hidraw_path
return -1;
}
device_index = strtoul((*args)[1], &end, 0);
- if (end != '\0') {
+ if (*end != '\0') {
if (device_type_from_str((*args)[1]) == -1) {
fprintf(stderr, "Invalid device type. Valid types are:\n");
print_device_types();