From cfd402e5f7a445824027d3f68b7687a41dbceba6 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 4 Aug 2016 16:35:49 -0400 Subject: 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 --- src/libostree/ostree-repo-static-delta-compilation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libostree/ostree-repo-static-delta-compilation.c') 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); -- cgit v1.2.1