repo: Correctly initialize refcount of temporary transaction
authorSimon McVittie <smcv@collabora.com>
Sat, 30 Apr 2022 11:53:42 +0000 (12:53 +0100)
committerSimon McVittie <smcv@collabora.com>
Sat, 30 Apr 2022 11:53:42 +0000 (12:53 +0100)
commit71304e854cdb344adb8b1ae7866929fbdde6c327
tree1ba57390e926b1b5bcae820de895ba7a199fbbd7
parent540e60c3e3ace66dd4e6cf825488fc918260a642
repo: Correctly initialize refcount of temporary transaction

Previously, the reference count was left uninitialized as a result of
bypassing the constructor, and the intended abort-on-error usually
wouldn't have happened.

Fixes: 8a9737a "repo/private: move OstreeRepoAutoTransaction to a boxed type"
Resolves: https://github.com/ostreedev/ostree/issues/2592
Signed-off-by: Simon McVittie <smcv@collabora.com>
src/libostree/ostree-repo-commit.c