summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-repo-static-delta-compilation.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2018-03-22 13:11:07 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-22 19:30:16 +0000
commit83b97ec56901041ac4e9c43da86614f757de13af (patch)
tree4271afd5425b6819cde5aa137b211d7a8e544151 /src/libostree/ostree-repo-static-delta-compilation.c
parent38cf31f6a72a946a469a8fa649ade2193e041e9e (diff)
downloadostree-83b97ec56901041ac4e9c43da86614f757de13af.tar.gz
lib/deltas: Squash some GCC maybe-uninitialized warnings
These show up in the RPM build, I didn't yet try to figure out why we're not reproducing them outside of that. Closes: #1510 Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-repo-static-delta-compilation.c')
-rw-r--r--src/libostree/ostree-repo-static-delta-compilation.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libostree/ostree-repo-static-delta-compilation.c b/src/libostree/ostree-repo-static-delta-compilation.c
index 746a1a50..9084a72f 100644
--- a/src/libostree/ostree-repo-static-delta-compilation.c
+++ b/src/libostree/ostree-repo-static-delta-compilation.c
@@ -241,14 +241,8 @@ finish_part (OstreeStaticDeltaBuilder *builder, GError **error)
g_variant_builder_add_value (&xattr_builder, part_builder->xattrs->pdata[j]);
{
- g_autoptr(GBytes) payload_b;
- g_autoptr(GBytes) operations_b;
-
- payload_b = g_string_free_to_bytes (part_builder->payload);
- part_builder->payload = NULL;
-
- operations_b = g_string_free_to_bytes (part_builder->operations);
- part_builder->operations = NULL;
+ g_autoptr(GBytes) payload_b = g_string_free_to_bytes (g_steal_pointer (&part_builder->payload));
+ g_autoptr(GBytes) operations_b = g_string_free_to_bytes (g_steal_pointer (&part_builder->operations));
delta_part_content = g_variant_new ("(a(uuu)aa(ayay)@ay@ay)",
&mode_builder, &xattr_builder,