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:
Julien BLACHE 2010-09-15 18:05:20 +02:00
parent ce683b26ab
commit 748a208796

View File

@ -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();