From a8e2a9349edcdb0cda424e4952754ec76c486e02 Mon Sep 17 00:00:00 2001 From: Tiiffi Date: Thu, 7 Nov 2024 21:39:37 +0200 Subject: [PATCH] Exit with appropriate return code if password is not provided, fixes #87 --- mcrcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcrcon.c b/mcrcon.c index c27beea..40b9dfb 100644 --- a/mcrcon.c +++ b/mcrcon.c @@ -209,7 +209,7 @@ int main(int argc, char *argv[]) if (pass == NULL) { puts("You must give password (-p password).\nTry 'mcrcon -h' or 'man mcrcon' for help."); - return 0; + exit(EXIT_FAILURE); } if(optind == argc && terminal_mode == 0)