mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 06:45:07 -05:00
refclock: remove unnecessary strlen() call
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user