[ostree] core: Ensure we initialize checksum in FIFO case too
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: Ensure we initialize checksum in FIFO case too
- Date: Mon, 5 Dec 2011 19:27:56 +0000 (UTC)
commit 267bf8ef4a6a1d08036cb337d6e4c7d9f564d86c
Author: Colin Walters <walters verbum org>
Date: Mon Dec 5 11:15:12 2011 -0500
core: Ensure we initialize checksum in FIFO case too
src/libostree/ostree-core.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c
index 97c67eb..edbd546 100644
--- a/src/libostree/ostree-core.c
+++ b/src/libostree/ostree-core.c
@@ -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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]