]> git.proxmox.com Git - mirror_qemu.git/blobdiff - ui/spice-core.c
error: Use error_fatal to simplify obvious fatal errors (again)
[mirror_qemu.git] / ui / spice-core.c
index 0371055e6c17d440fb9726ad66b3d1d225ad73a9..31974b8d6c445ad85e335915e7898e6cb0c72e82 100644 (file)
@@ -671,18 +671,13 @@ static void qemu_spice_init(void)
     }
     passwordSecret = qemu_opt_get(opts, "password-secret");
     if (passwordSecret) {
-        Error *local_err = NULL;
         if (qemu_opt_get(opts, "password")) {
             error_report("'password' option is mutually exclusive with "
                          "'password-secret'");
             exit(1);
         }
         password = qcrypto_secret_lookup_as_utf8(passwordSecret,
-                                                 &local_err);
-        if (!password) {
-            error_report_err(local_err);
-            exit(1);
-        }
+                                                 &error_fatal);
     } else {
         str = qemu_opt_get(opts, "password");
         if (str) {