lib/repo: Properly handle NULL homedir when signing commit
authorDan Nicholson <nicholson@endlessm.com>
Tue, 24 Oct 2017 19:27:17 +0000 (19:27 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 24 Oct 2017 19:58:07 +0000 (19:58 +0000)
commit63ce86d5977ebfbedd2cdfba1e4f6bd400a3a1b8
tree7db4c94844e78feb8e9d9b9597cae55bc8203c1f
parent886a5d79280b92d336a4eecc9da287fa8b697542
lib/repo: Properly handle NULL homedir when signing commit

Without this, ostree_repo_sign_commit throws a critical message when no
homedir is provided:

(ostree gpg-sign:5034): GLib-GIO-CRITICAL **: g_file_new_for_path: assertion 'path != NULL' failed

Closes: #1305
Approved by: cgwalters
src/libostree/ostree-repo.c