module/script: fix typo in memcmp()

Patch by Jan Beich
This commit is contained in:
Daniel Eklöf 2021-02-10 16:15:49 +01:00
parent 2563a233d7
commit fe252a1410
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -148,7 +148,7 @@ process_line(struct module *mod, const char *line, size_t len)
}
else if ((type_len > 6 && memcmp(type, "range:", 6) == 0) ||
(type_len > 9 && memcmp(type, "realtime:", 9 == 0)))
(type_len > 9 && memcmp(type, "realtime:", 9) == 0))
{
const char *_start = type + 6;
const char *split = memchr(_start, '-', type_len - 6);