Skip to content

Commit

Permalink
check empty re->fhsld
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Aug 15, 2023
1 parent 9dbc05c commit dfe99a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ static void poll_close(struct re *re);

static void fhsld_flush(struct re *re)
{
if (!re->fhsld)
return;

re->fhsld->pos = 0;

while (re->fhsld->pos < re->fhsld->end) {
Expand Down

0 comments on commit dfe99a9

Please sign in to comment.