mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-15 00:35:03 -05:00
Fix gcrypt_init_fail error path
Set ret to EXIT_FAILURE and swap the gcrypt_init_fail and signal_block_fail labels so they appear in the correct (reverse) order. No impact.
This commit is contained in:
parent
ce683b26ab
commit
748a208796
@ -566,6 +566,7 @@ main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
DPRINTF(E_FATAL, L_MAIN, "libgcrypt version mismatch\n");
|
DPRINTF(E_FATAL, L_MAIN, "libgcrypt version mismatch\n");
|
||||||
|
|
||||||
|
ret = EXIT_FAILURE;
|
||||||
goto gcrypt_init_fail;
|
goto gcrypt_init_fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -785,8 +786,8 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gcrypt_init_fail:
|
|
||||||
signal_block_fail:
|
signal_block_fail:
|
||||||
|
gcrypt_init_fail:
|
||||||
DPRINTF(E_LOG, L_MAIN, "Exiting.\n");
|
DPRINTF(E_LOG, L_MAIN, "Exiting.\n");
|
||||||
conffile_unload();
|
conffile_unload();
|
||||||
logger_deinit();
|
logger_deinit();
|
||||||
|
Loading…
Reference in New Issue
Block a user