From: Martin Kletzander Date: Mon, 20 Dec 2021 21:19:15 +0000 (+0100) Subject: Do not print error in remote_daemon.c:main X-Git-Tag: v8.0.0-rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb67c8cf4237163627cf8947993b15d0ebcf4c0;p=thirdparty%2Flibvirt.git Do not print error in remote_daemon.c:main There is no need to do that since both fallible functions do that already. Signed-off-by: Martin Kletzander Reviewed-by: Erik Skultety --- diff --git a/src/remote/remote_daemon.c b/src/remote/remote_daemon.c index 8a4610da83..84157e6cc1 100644 --- a/src/remote/remote_daemon.c +++ b/src/remote/remote_daemon.c @@ -826,10 +826,8 @@ int main(int argc, char **argv) { }; if (virGettextInitialize() < 0 || - virInitialize() < 0) { - fprintf(stderr, _("%s: initialization failed\n"), argv[0]); + virInitialize() < 0) exit(EXIT_FAILURE); - } virUpdateSelfLastChanged(argv[0]);