core: Ensure we initialize checksum in FIFO case too

This commit is contained in:
Colin Walters 2011-12-05 11:15:12 -05:00
parent 9d39517554
commit 267bf8ef4a
1 changed files with 2 additions and 0 deletions

View File

@ -663,6 +663,8 @@ ostree_pack_file_for_input (GOutputStream *output,
}
else if (S_ISFIFO (mode))
{
if (out_checksum)
ret_checksum = g_checksum_new (G_CHECKSUM_SHA256);
}
else
g_assert_not_reached ();