shared/install: check that install_changes_add() didn't fail on success
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 20 Oct 2022 10:07:10 +0000 (12:07 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Oct 2022 10:38:28 +0000 (12:38 +0200)
commitf31f10a6207efc9ae9e0b1f73975b5b610914017
tree9ee2dce8061bd26075412eb19f86fb18607f61d5
parent81de6962737a7d2817faad1cc2c50511a5972119
shared/install: check that install_changes_add() didn't fail on success

This adds a check for an allocation error for the calls to install_changes_add()
where we're plannig to return success from the call. In cases where we're
returning failure, it doesn't matter as much: the operation will fail anyway,
and if the allocation fails, we'll just get a less descriptive error message.
src/shared/install.c