summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-static-delta-compilation.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-08-04 16:35:49 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2016-08-05 07:38:09 +0000
commitcfd402e5f7a445824027d3f68b7687a41dbceba6 (patch)
tree74b961d885ab5f0dac2843da6fcdbf20f78d6505 /src/libostree/ostree-repo-static-delta-compilation.c
parent30aa1ec668cd49412ee39d8f163cd1ac45cc0694 (diff)
downloadostree-cfd402e5f7a445824027d3f68b7687a41dbceba6.tar.gz
lib: Fix a compiler warning introduced from earlier patch
I think we'd end up closing stdin...yuck. Need to investigate having this be fatal, but CentOS 7 `gcc-4.8.5` doesn't understand `-Werror=int-conversion`. Closes: #430 Approved by: giuseppe
Diffstat (limited to 'src/libostree/ostree-repo-static-delta-compilation.c')
-rw-r--r--src/libostree/ostree-repo-static-delta-compilation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libostree/ostree-repo-static-delta-compilation.c b/src/libostree/ostree-repo-static-delta-compilation.c
index a6bc3206..8b388094 100644
--- a/src/libostree/ostree-repo-static-delta-compilation.c
+++ b/src/libostree/ostree-repo-static-delta-compilation.c
@@ -1270,7 +1270,7 @@ ostree_repo_static_delta_generate (OstreeRepo *self,
g_autoptr(GVariant) detached = NULL;
gboolean inline_parts;
guint endianness = G_BYTE_ORDER;
- glnx_fd_close int tmp_dfd = NULL;
+ glnx_fd_close int tmp_dfd = -1;
builder.parts = g_ptr_array_new_with_free_func ((GDestroyNotify)ostree_static_delta_part_builder_unref);
builder.fallback_objects = g_ptr_array_new_with_free_func ((GDestroyNotify)g_variant_unref);