aboutsummaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-02-19 22:49:09 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-02-19 22:49:09 +0100
commit9d9e0c2979f43297b2ebbf84f14f064f3f9ced0e (patch)
tree95f89b3c89c1e8bfa8cf75068b06d8f89b6c099f /http.c
parent6ceae16a20175edb77fb2ffab0d3d6648d011221 (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 'http.c')
0 files changed, 0 insertions, 0 deletions