chiark / gitweb /
silence a bunch of gcc warnings
[elogind.git] / src / detect-virt / detect-virt.c
index a83fb3ced52059501ab6beae0c08edbfc6f99eb8..8b8fc45ea0d61f4ad7d5076788f7adc199fe47a9 100644 (file)
@@ -115,7 +115,8 @@ static int parse_argv(int argc, char *argv[]) {
 
 int main(int argc, char *argv[]) {
         const char *id = NULL;
-        int retval, r;
+        int r;
+        int retval = EXIT_SUCCESS;
 
         /* This is mostly intended to be used for scripts which want
          * to detect whether we are being run in a virtualized