diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-04-29 00:31:12 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-07-20 23:52:54 +0200 |
| commit | ad2ab22d00cb05f006a59f05cc2ff6879e7e7ba0 (patch) | |
| tree | 75d9d30a25424a933ec64ace75d16c3068079f3d /doc/man3/html_node_alloc.3 | |
| parent | 0336d249d66b2626dfcca51426bb1a152401f996 (diff) | |
| download | libweb-ad2ab22d00cb05f006a59f05cc2ff6879e7e7ba0.tar.gz | |
Return error if write_ctx_free fails
Otherwise, write_body_mem and write_body_mem would silently fail,
causing undefined behaviour.
Notes:
The return value for write_ctx_free is currently assigned to that of
fclose(3), which can be either 0 on success or EOF on failure.
However, it makes sense for write_body_mem and write_body_mem to simply
check against non-zero.
Also, it would not be sensible to return EOF to caller functions, which
expect either 0 (success), -1 (fatal error) or 1 (input error).
Diffstat (limited to 'doc/man3/html_node_alloc.3')
0 files changed, 0 insertions, 0 deletions
