diff --git a/src/main/main.c b/src/main/main.c index 31cbdac05..62b5492b4 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -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) {