fs/Charset: return Error on SetFSCharset() failure

Don't abort the process, let the caller decide instead.
This commit is contained in:
Max Kellermann
2014-11-29 22:33:30 +01:00
parent 5b1db917bc
commit fd2c6b8a4b
5 changed files with 37 additions and 17 deletions

View File

@@ -551,7 +551,10 @@ static int mpd_main_after_fork(struct options options)
GlobalEvents::Register(GlobalEvents::SHUTDOWN, shutdown_event_emitted);
#endif
ConfigureFS();
if (!ConfigureFS(error)) {
LogError(error);
return EXIT_FAILURE;
}
if (!glue_mapper_init(error)) {
LogError(error);