Commit 6cf45fd1 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Fix: Handle 0-byte feasts as no-match

parent 5504b58c
......@@ -82,6 +82,8 @@ static inline resourcematch_result_t match_lli(const char **string, resourcematc
errno = 0;
ret = strtoll(*string, &endptr, base);
if (endptr == *string)
return RESOURCEMATCH_MATCH;
if (errno != 0)
return RESOURCEMATCH_ERROR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment