refclock: remove unnecessary strlen() call

This commit is contained in:
Miroslav Lichvar 2019-05-09 15:48:11 +02:00
parent 5c9e1e0b69
commit 636a4e2794

View file

@ -350,7 +350,7 @@ RCL_CheckDriverOptions(RCL_Instance instance, const char **options)
option = get_next_driver_option(instance, option)) { option = get_next_driver_option(instance, option)) {
for (i = 0; options && options[i]; i++) { for (i = 0; options && options[i]; i++) {
len = strlen(options[i]); len = strlen(options[i]);
if (!strncmp(options[i], option, strlen(options[i])) && if (!strncmp(options[i], option, len) &&
(option[len] == '=' || option[len] == '\0')) (option[len] == '=' || option[len] == '\0'))
break; break;
} }