Fix usage of kern_getenv().
This commit is contained in:
parent
7b73afe4a6
commit
134ada3646
@ -1246,8 +1246,10 @@ initarm(struct arm_boot_params *abp)
|
||||
print_kenv();
|
||||
|
||||
env = kern_getenv("kernelname");
|
||||
if (env != NULL)
|
||||
if (env != NULL) {
|
||||
strlcpy(kernelname, env, sizeof(kernelname));
|
||||
freeenv(env);
|
||||
}
|
||||
|
||||
if (err_devmap != 0)
|
||||
printf("WARNING: could not fully configure devmap, error=%d\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user