Skip to content
Snippets Groups Projects
Commit 634aae10 authored by Simon McVittie's avatar Simon McVittie
Browse files

launch: Narrow scope of strv_builder


We only need this in one branch.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 374d202d
No related branches found
No related tags found
1 merge request!194Flatpak-related fixes
......@@ -865,14 +865,14 @@ main (int argc,
if (g_hash_table_size (opt_unsetenv) > 0)
{
GVariantBuilder strv_builder;
g_variant_builder_init (&strv_builder, G_VARIANT_TYPE_STRING_ARRAY);
g_hash_table_iter_init (&iter, opt_unsetenv);
if (api == &launcher_api)
{
GVariantBuilder strv_builder;
g_variant_builder_init (&strv_builder, G_VARIANT_TYPE_STRING_ARRAY);
while (g_hash_table_iter_next (&iter, &key, NULL))
g_variant_builder_add (&strv_builder, "s", key);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment