aboutsummaryrefslogtreecommitdiff
path: root/doc/man3/html_node_alloc.3
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-04-29 00:31:12 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-20 23:52:54 +0200
commitad2ab22d00cb05f006a59f05cc2ff6879e7e7ba0 (patch)
tree75d9d30a25424a933ec64ace75d16c3068079f3d /doc/man3/html_node_alloc.3
parent0336d249d66b2626dfcca51426bb1a152401f996 (diff)
downloadlibweb-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