Merges: https://pagure.io/libuser/issue/23
This makes the code slightly less compact with using an explicit condition instead of the g_return_val_if_fail() shorthand, but freeing tmp on failures.
g_return_val_if_fail also logs a critical error; maybe use g_return_val_if_reached to preserve that?
g_return_val_if_fail
g_return_val_if_reached
(I’m honestly not all that sold on the g_*_if_fail style of error “handling”. But if it’s worth doing at all, it’s worth doing consistently.)
g_*_if_fail
LGTM, thank you for the patch. ACK
Commit 22da5ca8 fixes this pull-request
Pull-Request has been merged by thalman
Merges:
https://pagure.io/libuser/issue/23
This makes the code slightly less compact with using an explicit
condition instead of the g_return_val_if_fail() shorthand, but freeing
tmp on failures.