swtpm_setup: Exit with '0' upon --version rather than '1'.
The --version option was using the wrong goto label error rather than
out to now also exit with exitcode 0.
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
diff --git a/src/swtpm_setup/swtpm_setup.c b/src/swtpm_setup/swtpm_setup.c
index 95e3fea..60f0a8d 100644
--- a/src/swtpm_setup/swtpm_setup.c
+++ b/src/swtpm_setup/swtpm_setup.c
@@ -1387,7 +1387,7 @@
case '1': /* --version */
versioninfo();
ret = 0;
- goto error;
+ goto out;
case 'y': /* --print-capabilities */
printcapabilities = TRUE;
break;