Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
More coverity fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Ellzey committed Apr 20, 2016
1 parent abc7eb4 commit 7d3cc52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ htparser_run(htparser * p, htparse_hooks * hooks, const char * data, size_t len)
res = 0;

if (usual[ch >> 5] & (1 << (ch & 0x1f))) {
if (lz_likely(buf_idx + 1) < PARSER_STACK_MAX) {
if (lz_likely((p->buf_idx + 1) < PARSER_STACK_MAX)) {
p->buf[p->buf_idx++] = ch;
p->buf[p->buf_idx] = '\0';
p->state = s_check_uri;
Expand Down

0 comments on commit 7d3cc52

Please sign in to comment.