forked from external/yambar
module/script: fix typo in memcmp()
Patch by Jan Beich
This commit is contained in:
parent
2563a233d7
commit
fe252a1410
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue