Skip to content
Snippets Groups Projects
Commit b30b544c 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 bcf4b1fb
No related branches found
No related tags found
No related merge requests found
......@@ -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.
Finish editing this message first!
Please register or to comment