libopkg: make checksum_bin2hex() and checksum_hex2bin() cope with NULL
authorJo-Philipp Wich <jo@mein.io>
Wed, 15 Feb 2017 22:42:58 +0000 (23:42 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 16 Feb 2017 16:02:29 +0000 (17:02 +0100)
commit55a9337ba2641555623b3faa5e2dc6607b0ba0f0
tree47cce1932d2016a859411f672231252ca96dced7
parenta5de03e4dce94f10a6efdf22fbddc20636004e8d
libopkg: make checksum_bin2hex() and checksum_hex2bin() cope with NULL

Those functions may be called with a NULL source pointer, especially during
pkg_merge(), so allow that to keep call sites simple.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/file_util.c