diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-02-19 22:49:09 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2024-02-19 22:49:09 +0100 |
| commit | 9d9e0c2979f43297b2ebbf84f14f064f3f9ced0e (patch) | |
| tree | 95f89b3c89c1e8bfa8cf75068b06d8f89b6c099f /doc/man3/html_node_alloc.3 | |
| parent | 6ceae16a20175edb77fb2ffab0d3d6648d011221 (diff) | |
html.c: Avoid half-init objects on html_node_add_attr
The previous implementation would leave half-initialised objects if one
of the calls to strdup(3) failed. Now, n->attrs is only modified when
all previous memory allocations were successful.
Diffstat (limited to 'doc/man3/html_node_alloc.3')
0 files changed, 0 insertions, 0 deletions
