author | Olivier Brunel
<jjk@jjacky.com> 2022-12-26 20:32:39 UTC |
committer | Olivier Brunel
<jjk@jjacky.com> 2022-12-26 20:32:39 UTC |
parent | 926d91a5025c8bf1a2e5a016dd42d1de03c32351 |
main.c | +2 | -1 |
diff --git a/main.c b/main.c index 42836b2..bea6c0c 100644 --- a/main.c +++ b/main.c @@ -798,7 +798,8 @@ main (int argc, char *argv[]) for (int i = 0; i < NB_CSS; ++i) { if (options & OPT_INLINE_CSS) { css[i].offset = ctx.sa_names.len; - if (!openreadfileclose(css[i].file, &ctx.sa_names, 0)) + if (!openreadfileclose(css[i].file, &ctx.sa_names, 0) + || !stralloc_0(&ctx.sa_names)) strerr_diefu3sys(-ERR_IO, "load CSS from '", css[i].file, "'"); } else { int from, to;