module/script: can’t use logical OR when building a base 10 number

This commit is contained in:
Daniel Eklöf 2020-10-28 19:05:03 +01:00
parent 08bac77907
commit 73407853e4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -140,7 +140,7 @@ process_line(struct module *mod, const char *line, size_t len)
goto bad_tag;
start *= 10;
start |= _start[i] - '0';
start += _start[i] - '0';
}
long end = 0;
@ -149,7 +149,7 @@ process_line(struct module *mod, const char *line, size_t len)
goto bad_tag;
end *= 10;
end |= _end[i] - '0';
end += _end[i] - '0';
}
if (type_len > 9 && memcmp(type, "realtime:", 9) == 0) {