lib/deploy: Avoid shadowing variable

There's already a `boot_relpath` variable in the outside scope.
This commit is contained in:
Jonathan Lebon committed 2020-08-17 09:48:57 -04:00
1 parent 52a6224606
commit 61c544df1b
1 file changed
+3 -2
+3 -2
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
{