lib/deploy: Avoid shadowing variable

There's already a `boot_relpath` variable in the outside scope.
This commit is contained in:
Jonathan Lebon 2020-08-17 09:48:10 -04:00
parent 52a6224606
commit 61c544df1b
1 changed files with 3 additions and 2 deletions

View File

@ -1935,8 +1935,9 @@ install_deployment_kernel (OstreeSysroot *sysroot,
if (kernel_layout->initramfs_namever)
{
g_autofree char * boot_relpath = g_strconcat ("/", bootcsumdir, "/", kernel_layout->initramfs_namever, NULL);
ostree_bootconfig_parser_set (bootconfig, "initrd", boot_relpath);
g_autofree char * initrd_boot_relpath =
g_strconcat ("/", bootcsumdir, "/", kernel_layout->initramfs_namever, NULL);
ostree_bootconfig_parser_set (bootconfig, "initrd", initrd_boot_relpath);
}
else
{