mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-24 06:46:49 +03:00
limine-deploy: Fix bug where undeploy() is reached with uninitialised device
This commit is contained in:
parent
2e52a41e46
commit
b40d2180d0
@ -554,8 +554,9 @@ int main(int argc, char *argv[]) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if (!device_init())
|
||||
goto cleanup;
|
||||
if (!device_init()) {
|
||||
goto undeploy_mode_cleanup;
|
||||
}
|
||||
|
||||
if (undeploy_mode) {
|
||||
if (undeploy_file == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user